grafana: auto-sync 2026-05-24
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
"tableColumn": "",
|
||||
"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,
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -199,7 +199,7 @@
|
||||
"tableColumn": "",
|
||||
"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,
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -252,7 +252,7 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "{namespace=\"$namespace\", pod=~\"$pod\", stream=~\"$stream\"} |~ \"(?i)$searchable_pattern\" ",
|
||||
"expr": "{host=\"$host\", container=~\"$container\", job=~\"$job\"} |~ \"(?i)$searchable_pattern\" ",
|
||||
"hide": false,
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -357,7 +357,7 @@
|
||||
"strokeWidth": "1.5",
|
||||
"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,
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -438,7 +438,7 @@
|
||||
"strokeWidth": "0.4",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
@@ -505,7 +505,7 @@
|
||||
"pluginVersion": "7.0.4",
|
||||
"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,
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -574,7 +574,7 @@
|
||||
"steppedLine": false,
|
||||
"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"
|
||||
}
|
||||
],
|
||||
@@ -676,7 +676,7 @@
|
||||
"steppedLine": false,
|
||||
"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,
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -821,7 +821,7 @@
|
||||
"steppedLine": false,
|
||||
"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,
|
||||
"refId": "A"
|
||||
}
|
||||
@@ -887,14 +887,14 @@
|
||||
"value": "loki"
|
||||
},
|
||||
"datasource": "P8E80F9AEF21F6940",
|
||||
"definition": "label_values({namespace=~\".+\"}, namespace)",
|
||||
"definition": "label_values(host)",
|
||||
"hide": 0,
|
||||
"includeAll": false,
|
||||
"label": "Namespace",
|
||||
"multi": false,
|
||||
"name": "namespace",
|
||||
"name": "host",
|
||||
"options": [],
|
||||
"query": "label_values({namespace=~\".+\"}, namespace)",
|
||||
"query": "label_values(host)",
|
||||
"refresh": 2,
|
||||
"regex": "",
|
||||
"skipUrlSync": false,
|
||||
@@ -909,14 +909,14 @@
|
||||
"allValue": null,
|
||||
"current": {},
|
||||
"datasource": "P8E80F9AEF21F6940",
|
||||
"definition": "label_values({namespace=\"$namespace\"}, pod)",
|
||||
"definition": "label_values({host=\"$host\"}, pod)",
|
||||
"hide": 0,
|
||||
"includeAll": true,
|
||||
"label": "Pod",
|
||||
"multi": false,
|
||||
"name": "pod",
|
||||
"name": "container",
|
||||
"options": [],
|
||||
"query": "label_values({namespace=\"$namespace\"}, pod)",
|
||||
"query": "label_values({host=\"$host\"}, pod)",
|
||||
"refresh": 2,
|
||||
"regex": "",
|
||||
"skipUrlSync": false,
|
||||
@@ -931,14 +931,14 @@
|
||||
"allValue": null,
|
||||
"current": {},
|
||||
"datasource": "P8E80F9AEF21F6940",
|
||||
"definition": "label_values({namespace=\"$namespace\"}, stream)",
|
||||
"definition": "label_values({host=\"$host\"}, stream)",
|
||||
"hide": 0,
|
||||
"includeAll": true,
|
||||
"label": "Stream",
|
||||
"multi": false,
|
||||
"name": "stream",
|
||||
"name": "job",
|
||||
"options": [],
|
||||
"query": "label_values({namespace=\"$namespace\"}, stream)",
|
||||
"query": "label_values({host=\"$host\"}, stream)",
|
||||
"refresh": 2,
|
||||
"regex": "",
|
||||
"skipUrlSync": false,
|
||||
@@ -991,5 +991,5 @@
|
||||
"timezone": "",
|
||||
"title": "Container Log Dashboard",
|
||||
"uid": "f31115b8-bef2-4f34-bbc9-267dc374d13e",
|
||||
"version": 1
|
||||
"version": 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user