Add live Prometheus telemetry endpoint

This commit is contained in:
Keith Casko
2026-10-02 10:22:55 -04:00
parent eb64092294
commit 03ea007676
6 changed files with 248 additions and 23 deletions
+34
View File
@@ -0,0 +1,34 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /api/status {
proxy_pass http://status-api:8080/status;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 2s;
proxy_read_timeout 4s;
add_header Cache-Control "no-store, max-age=0" always;
}
location / {
try_files $uri $uri/ =404;
}
location ~ /. {
deny all;
return 404;
}
location ^~ /status-api/ {
return 404;
}
location = /nginx.conf {
return 404;
}
}