From 0307ad6c9fa62d6c446bd4cbd8f6868a5ce016a0 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Wed, 24 Jan 2024 19:36:21 +0100 Subject: [PATCH] proxy access to metrics through nginx --- .../configs/grafana/docker_compose/prometheus.yml | 6 +++--- .../configs/mumble/nginx/mumble.hamburg.ccc.de.conf | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus.yml b/playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus.yml index 0eef12f..836f3f3 100644 --- a/playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus.yml +++ b/playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus.yml @@ -32,8 +32,8 @@ scrape_configs: honor_timestamps: true scrape_interval: 5s scrape_timeout: 1s - metrics_path: / - scheme: http + metrics_path: /metrics + scheme: https static_configs: - targets: - - mumble.hamburg.ccc.de:9123 + - mumble.hamburg.ccc.de:443 diff --git a/playbooks/files/chaosknoten/configs/mumble/nginx/mumble.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/mumble/nginx/mumble.hamburg.ccc.de.conf index 8c7f8a6..a34fa85 100644 --- a/playbooks/files/chaosknoten/configs/mumble/nginx/mumble.hamburg.ccc.de.conf +++ b/playbooks/files/chaosknoten/configs/mumble/nginx/mumble.hamburg.ccc.de.conf @@ -21,4 +21,8 @@ server { location / { return 302 https://wiki.hamburg.ccc.de/infrastructure:services:mumble; } + + location /metrics { + proxy_pass http://127.0.0.1:9123/; + } }