Skip to content

Commit

Permalink
Merge pull request #347 from IATI/prom_single_port
Browse files Browse the repository at this point in the history
fix: put prom metrics on multi-endpoints on single port
  • Loading branch information
simon-20 authored Aug 22, 2024
2 parents 1ba7b59 + 0b04219 commit a2daef2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 89 deletions.
21 changes: 1 addition & 20 deletions deployment/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,31 +298,12 @@ properties: # Properties of container group
ports:
- port: 9158
protocol: TCP
- port: 9159
protocol: TCP
- port: 9160
protocol: TCP
- port: 9161
protocol: TCP
- port: 9162
protocol: TCP
- port: 9163
protocol: TCP
resources:
requests:
cpu: 0.1
memoryInGB: 0.6
ipAddress:
type: "public"
dnsNameLabel: "#NAME#-#ENVIRONMENT#-1"
dnsNameLabel: "#NAME#-#ENVIRONMENT#"
ports:
- port: 9158
- port: 9159
- port: 9160
ipAddress: # split across two IPs because there is hard limit of 5-public ports per IP
type: "public"
dnsNameLabel: "#NAME#-#ENVIRONMENT#-2"
ports:
- port: 9161
- port: 9162
- port: 9163
84 changes: 15 additions & 69 deletions nginx-reverse-proxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,92 +29,38 @@ http {

server_name _;

location / {
location /c1_refresh {
rewrite ^/c1_refresh(.*)$ /$1 break;
proxy_pass http://localhost:9091;
}

auth_basic "Unified Pipelne Metrics Exporter - Refresh";
auth_basic_user_file htpasswd;
}

server {
listen 9159;
listen [::]:9159;

root /var/www/html;

server_name _;

location / {
location /c2_validate {
rewrite ^/c2_validate(.*)$ /$1 break;
proxy_pass http://localhost:9092;
}

auth_basic "Unified Pipelne Metrics Exporter - Validate";
auth_basic_user_file htpasswd;
}

server {
listen 9160;
listen [::]:9160;

root /var/www/html;

server_name _;

location / {
location /c3_clean {
rewrite ^/c3_clean(.*)$ /$1 break;
proxy_pass http://localhost:9093;
}

auth_basic "Unified Pipelne Metrics Exporter - Clean";
auth_basic_user_file htpasswd;
}

server {
listen 9161;
listen [::]:9161;

root /var/www/html;

server_name _;

location / {
location /c4_flatten {
rewrite ^/c4_flatten(.*)$ /$1 break;
proxy_pass http://localhost:9094;
}

auth_basic "Unified Pipelne Metrics Exporter - Flatten";
auth_basic_user_file htpasswd;
}

server {
listen 9162;
listen [::]:9162;

root /var/www/html;

server_name _;

location / {
location /c5_lakify {
rewrite ^/c5_lakify(.*)$ /$1 break;
proxy_pass http://localhost:9095;
}

auth_basic "Unified Pipelne Metrics Exporter - Lakify";
auth_basic_user_file htpasswd;
}

server {
listen 9163;
listen [::]:9163;

root /var/www/html;

server_name _;

location / {
location /c6_solrize {
rewrite ^/c6_solrize(.*)$ /$1 break;
proxy_pass http://localhost:9096;
}

auth_basic "Unified Pipelne Metrics Exporter - Solrize";
auth_basic "Unified Pipelne Metrics Exporters";
auth_basic_user_file htpasswd;
}
}

}

0 comments on commit a2daef2

Please sign in to comment.