proxy access to metrics through nginx

This commit is contained in:
Stefan Bethke 2024-01-24 19:36:21 +01:00
parent a68edb81c4
commit 0307ad6c9f
2 changed files with 7 additions and 3 deletions

View file

@ -32,8 +32,8 @@ scrape_configs:
honor_timestamps: true honor_timestamps: true
scrape_interval: 5s scrape_interval: 5s
scrape_timeout: 1s scrape_timeout: 1s
metrics_path: / metrics_path: /metrics
scheme: http scheme: https
static_configs: static_configs:
- targets: - targets:
- mumble.hamburg.ccc.de:9123 - mumble.hamburg.ccc.de:443

View file

@ -21,4 +21,8 @@ server {
location / { location / {
return 302 https://wiki.hamburg.ccc.de/infrastructure:services:mumble; return 302 https://wiki.hamburg.ccc.de/infrastructure:services:mumble;
} }
location /metrics {
proxy_pass http://127.0.0.1:9123/;
}
} }