From 6dc698d4ef3ecf36b6b5bcd81ec9380db1b77075 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sun, 18 Jan 2026 12:02:27 -0800 Subject: [PATCH] Fix zot dashboard job label filter Alloy labels scraped metrics with job="prometheus.scrape.zot", not just "zot". Updated all dashboard queries to match. Co-Authored-By: Claude Opus 4.5 --- .../roles/grafana/files/dashboards/zot.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ansible/roles/grafana/files/dashboards/zot.json b/ansible/roles/grafana/files/dashboards/zot.json index 0ee2908..dab1876 100644 --- a/ansible/roles/grafana/files/dashboards/zot.json +++ b/ansible/roles/grafana/files/dashboards/zot.json @@ -105,7 +105,7 @@ "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "go_goroutines{job=\"zot\"}", + "expr": "go_goroutines{job=\"prometheus.scrape.zot\"}", "refId": "A" } ], @@ -153,7 +153,7 @@ "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "process_resident_memory_bytes{job=\"zot\"}", + "expr": "process_resident_memory_bytes{job=\"prometheus.scrape.zot\"}", "refId": "A" } ], @@ -197,7 +197,7 @@ "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "sum(rate(zot_http_requests_total{job=\"zot\"}[5m]))", + "expr": "sum(rate(zot_http_requests_total{job=\"prometheus.scrape.zot\"}[5m]))", "refId": "A" } ], @@ -259,7 +259,7 @@ "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "sum by (method) (rate(zot_http_requests_total{job=\"zot\"}[5m]))", + "expr": "sum by (method) (rate(zot_http_requests_total{job=\"prometheus.scrape.zot\"}[5m]))", "legendFormat": "{{method}}", "refId": "A" } @@ -322,7 +322,7 @@ "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "sum by (code) (rate(zot_http_requests_total{job=\"zot\"}[5m]))", + "expr": "sum by (code) (rate(zot_http_requests_total{job=\"prometheus.scrape.zot\"}[5m]))", "legendFormat": "{{code}}", "refId": "A" } @@ -385,19 +385,19 @@ "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "histogram_quantile(0.50, sum(rate(zot_http_request_duration_seconds_bucket{job=\"zot\"}[5m])) by (le))", + "expr": "histogram_quantile(0.50, sum(rate(zot_http_request_duration_seconds_bucket{job=\"prometheus.scrape.zot\"}[5m])) by (le))", "legendFormat": "p50", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "histogram_quantile(0.95, sum(rate(zot_http_request_duration_seconds_bucket{job=\"zot\"}[5m])) by (le))", + "expr": "histogram_quantile(0.95, sum(rate(zot_http_request_duration_seconds_bucket{job=\"prometheus.scrape.zot\"}[5m])) by (le))", "legendFormat": "p95", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "histogram_quantile(0.99, sum(rate(zot_http_request_duration_seconds_bucket{job=\"zot\"}[5m])) by (le))", + "expr": "histogram_quantile(0.99, sum(rate(zot_http_request_duration_seconds_bucket{job=\"prometheus.scrape.zot\"}[5m])) by (le))", "legendFormat": "p99", "refId": "C" } @@ -460,19 +460,19 @@ "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "process_resident_memory_bytes{job=\"zot\"}", + "expr": "process_resident_memory_bytes{job=\"prometheus.scrape.zot\"}", "legendFormat": "Resident Memory", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "go_memstats_heap_alloc_bytes{job=\"zot\"}", + "expr": "go_memstats_heap_alloc_bytes{job=\"prometheus.scrape.zot\"}", "legendFormat": "Heap Alloc", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, - "expr": "go_memstats_heap_inuse_bytes{job=\"zot\"}", + "expr": "go_memstats_heap_inuse_bytes{job=\"prometheus.scrape.zot\"}", "legendFormat": "Heap In Use", "refId": "C" }