Skip to content

Commit

Permalink
Merge pull request #736 from IATI/feature/prometheus-proxy-port
Browse files Browse the repository at this point in the history
Proxy the prometheus port
  • Loading branch information
Bjwebb authored Feb 13, 2024
2 parents 76dba9c + 4f97bc4 commit c688453
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/nginx/website_dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,13 @@ server {
return 302 https://iatiwebsitedev.blob.core.windows.net/dev-iati-website$1;
}
}


# Proxy the prometheus port from the destination server
server {
listen 9158;

location / {
proxy_pass http://XX.XX.XX.XX:9157;
}
}
10 changes: 10 additions & 0 deletions config/nginx/website_prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,13 @@ server {
return 302 https://cdn.iatistandard.org/prod-iati-website$1;
}
}


# Proxy the prometheus port from the destination server
server {
listen 9158;

location / {
proxy_pass http://XX.XX.XX.XX:9157;
}
}

0 comments on commit c688453

Please sign in to comment.