feat: expose /metrics endpoint and add telemetry ClickHouse credentials

This commit is contained in:
MythEclipse
2026-06-07 20:57:45 +07:00
parent 0da578c546
commit 2c41b80f97
4 changed files with 194 additions and 0 deletions
+9
View File
@@ -12,6 +12,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Expose API metrics through the web endpoint (Prometheus scrape target)
location /metrics {
proxy_pass http://zeavis-api:3000/metrics;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
try_files $uri $uri/ /index.html;
}