K8s Migration Phase 0: Foundation Infrastructure #26

Merged
eblume merged 22 commits from feature/k8s-migration-phase0 into main 2026-01-18 12:06:28 -08:00
Showing only changes of commit 6dc698d4ef - Show all commits

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 <noreply@anthropic.com>
Erich Blume 2026-01-18 12:02:27 -08:00

View file

@ -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"
}