Skip to content

Commit 94ed921

Browse files
RobertLuciandeliahu
authored andcommitted
Fix Grafana dashboards for Realtime/Batch API kinds (#2024)
(cherry picked from commit 6b39ecf)
1 parent 495d16d commit 94ed921

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

manager/manifests/grafana/grafana-dashboard-batch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data:
3636
"editable": true,
3737
"gnetId": null,
3838
"graphTooltip": 0,
39-
"iteration": 1617047403252,
39+
"iteration": 1617119656448,
4040
"links": [],
4141
"panels": [
4242
{
@@ -670,7 +670,7 @@ data:
670670
"targets": [
671671
{
672672
"exemplar": false,
673-
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container!=\"POD\"}[1m]))\n/\ncount(count_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2",
673+
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container!=\"POD\"}[1m]))\n/\navg(count_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2",
674674
"format": "time_series",
675675
"instant": false,
676676
"interval": "",
@@ -1151,7 +1151,7 @@ data:
11511151
"targets": [
11521152
{
11531153
"exemplar": false,
1154-
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container!=\"POD\"}[1m]))\n/\ncount(count_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2\n/\nsum(kube_pod_info{exported_pod=~\"$api_name.+\"})",
1154+
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container!=\"POD\"}[1m]))\n/\navg(count_over_time(container_memory_working_set_bytes{pod=~\"$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2\n/\nsum(kube_pod_info{exported_pod=~\"$api_name.+\"})",
11551155
"format": "time_series",
11561156
"instant": false,
11571157
"interval": "",

manager/manifests/grafana/grafana-dashboard-realtime.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data:
3636
"editable": true,
3737
"gnetId": null,
3838
"graphTooltip": 0,
39-
"iteration": 1617045789767,
39+
"iteration": 1617115895718,
4040
"links": [],
4141
"panels": [
4242
{
@@ -1381,7 +1381,7 @@ data:
13811381
"targets": [
13821382
{
13831383
"exemplar": false,
1384-
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container!=\"POD\"}[1m])) /\ncount(count_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2",
1384+
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container!=\"POD\"}[1m])) /\navg(count_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2",
13851385
"format": "time_series",
13861386
"instant": false,
13871387
"interval": "",
@@ -1862,7 +1862,7 @@ data:
18621862
"targets": [
18631863
{
18641864
"exemplar": false,
1865-
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container!=\"POD\"}[1m]))\n/\ncount(count_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2\n/\nsum(kube_pod_info{exported_pod=~\"api-$api_name.+\"})",
1865+
"expr": "sum(sum_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container!=\"POD\"}[1m]))\n/\navg(count_over_time(container_memory_working_set_bytes{pod=~\"api-$api_name.+\", name!=\"\", container=\"api\"}[1m])) / 1024^2\n/\nsum(kube_pod_info{exported_pod=~\"api-$api_name.+\"})",
18661866
"format": "time_series",
18671867
"instant": false,
18681868
"interval": "",

0 commit comments

Comments
 (0)