grafana: auto-sync 2026-05-24

This commit is contained in:
nuc-cron
2026-05-24 03:25:01 +00:00
parent 9b63577505
commit 77b4cf7e6d
+19 -19
View File
@@ -94,7 +94,7 @@
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"})[$__interval]))", "expr": "sum(count_over_time(({host=\"$host\", job=~\"$job\", container=~\"$container\"})[$__interval]))",
"hide": false, "hide": false,
"refId": "A" "refId": "A"
} }
@@ -199,7 +199,7 @@
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"} |~ \"(?i)$searchable_pattern\")[$__interval]))", "expr": "sum(count_over_time(({host=\"$host\", job=~\"$job\", container=~\"$container\"} |~ \"(?i)$searchable_pattern\")[$__interval]))",
"hide": false, "hide": false,
"refId": "A" "refId": "A"
} }
@@ -252,7 +252,7 @@
}, },
"targets": [ "targets": [
{ {
"expr": "{namespace=\"$namespace\", pod=~\"$pod\", stream=~\"$stream\"} |~ \"(?i)$searchable_pattern\" ", "expr": "{host=\"$host\", container=~\"$container\", job=~\"$job\"} |~ \"(?i)$searchable_pattern\" ",
"hide": false, "hide": false,
"refId": "A" "refId": "A"
} }
@@ -357,7 +357,7 @@
"strokeWidth": "1.5", "strokeWidth": "1.5",
"targets": [ "targets": [
{ {
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\"})[$__interval])) by (stream)", "expr": "sum(count_over_time(({host=\"$host\", container=~\"$container\"})[$__interval])) by (job)",
"hide": false, "hide": false,
"refId": "A" "refId": "A"
} }
@@ -438,7 +438,7 @@
"strokeWidth": "0.4", "strokeWidth": "0.4",
"targets": [ "targets": [
{ {
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\", stream=~\"$stream\"} |~ \"(?i)$searchable_pattern\")[$__interval])) by (pod)", "expr": "sum(count_over_time(({host=\"$host\", container=~\"$container\", job=~\"$job\"} |~ \"(?i)$searchable_pattern\")[$__interval])) by (pod)",
"refId": "A" "refId": "A"
} }
], ],
@@ -505,7 +505,7 @@
"pluginVersion": "7.0.4", "pluginVersion": "7.0.4",
"targets": [ "targets": [
{ {
"expr": "sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"} |~ \"(?i)$searchable_pattern\")[$__interval])) * 100 / sum(count_over_time(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"})[$__interval]))", "expr": "sum(count_over_time(({host=\"$host\", job=~\"$job\", container=~\"$container\"} |~ \"(?i)$searchable_pattern\")[$__interval])) * 100 / sum(count_over_time(({host=\"$host\", job=~\"$job\", container=~\"$container\"})[$__interval]))",
"hide": false, "hide": false,
"refId": "A" "refId": "A"
} }
@@ -574,7 +574,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\", stream=~\"$stream\"} |~ \"(?i)$searchable_pattern\")[$__interval])) by (pod)", "expr": "sum(count_over_time(({host=\"$host\", container=~\"$container\", job=~\"$job\"} |~ \"(?i)$searchable_pattern\")[$__interval])) by (pod)",
"refId": "A" "refId": "A"
} }
], ],
@@ -676,7 +676,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(rate(({namespace=\"$namespace\", stream=~\"$stream\", pod=~\"$pod\"} |~ \"(?i)$searchable_pattern\")[30s])) by (pod)", "expr": "sum(rate(({host=\"$host\", job=~\"$job\", container=~\"$container\"} |~ \"(?i)$searchable_pattern\")[30s])) by (pod)",
"hide": false, "hide": false,
"refId": "A" "refId": "A"
} }
@@ -821,7 +821,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(count_over_time(({namespace=\"$namespace\", pod=~\"$pod\"})[$__interval])) by (stream)", "expr": "sum(count_over_time(({host=\"$host\", container=~\"$container\"})[$__interval])) by (job)",
"hide": false, "hide": false,
"refId": "A" "refId": "A"
} }
@@ -887,14 +887,14 @@
"value": "loki" "value": "loki"
}, },
"datasource": "P8E80F9AEF21F6940", "datasource": "P8E80F9AEF21F6940",
"definition": "label_values({namespace=~\".+\"}, namespace)", "definition": "label_values(host)",
"hide": 0, "hide": 0,
"includeAll": false, "includeAll": false,
"label": "Namespace", "label": "Namespace",
"multi": false, "multi": false,
"name": "namespace", "name": "host",
"options": [], "options": [],
"query": "label_values({namespace=~\".+\"}, namespace)", "query": "label_values(host)",
"refresh": 2, "refresh": 2,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@@ -909,14 +909,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "P8E80F9AEF21F6940", "datasource": "P8E80F9AEF21F6940",
"definition": "label_values({namespace=\"$namespace\"}, pod)", "definition": "label_values({host=\"$host\"}, pod)",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "Pod", "label": "Pod",
"multi": false, "multi": false,
"name": "pod", "name": "container",
"options": [], "options": [],
"query": "label_values({namespace=\"$namespace\"}, pod)", "query": "label_values({host=\"$host\"}, pod)",
"refresh": 2, "refresh": 2,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@@ -931,14 +931,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "P8E80F9AEF21F6940", "datasource": "P8E80F9AEF21F6940",
"definition": "label_values({namespace=\"$namespace\"}, stream)", "definition": "label_values({host=\"$host\"}, stream)",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "Stream", "label": "Stream",
"multi": false, "multi": false,
"name": "stream", "name": "job",
"options": [], "options": [],
"query": "label_values({namespace=\"$namespace\"}, stream)", "query": "label_values({host=\"$host\"}, stream)",
"refresh": 2, "refresh": 2,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@@ -991,5 +991,5 @@
"timezone": "", "timezone": "",
"title": "Container Log Dashboard", "title": "Container Log Dashboard",
"uid": "f31115b8-bef2-4f34-bbc9-267dc374d13e", "uid": "f31115b8-bef2-4f34-bbc9-267dc374d13e",
"version": 1 "version": 2
} }