Skip to content

Commit c8d63fe

Browse files
committed
chore: Update dashboard with new metrics and labels
1 parent 83c1f02 commit c8d63fe

File tree

1 file changed

+7
-33
lines changed

1 file changed

+7
-33
lines changed

deploy/helm/grafana-operator/files/dashboard.json

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@
598598
"type": "prometheus",
599599
"uid": "$datasource"
600600
},
601-
"description": "Time in ms to sync Custom Resources after operator restart",
601+
"description": "Time in ms to sync Custom Resources after operator restart or leader change",
602602
"fieldConfig": {
603603
"defaults": {
604604
"color": {
@@ -620,7 +620,7 @@
620620
},
621621
"gridPos": {
622622
"h": 5,
623-
"w": 12,
623+
"w": 4,
624624
"x": 0,
625625
"y": 9
626626
},
@@ -646,39 +646,13 @@
646646
"targets": [
647647
{
648648
"editorMode": "code",
649-
"expr": "sum(grafana_operator_dashboards_initial_sync_duration{$k8sClusterLabelKey=\"$cluster\", pod=~\"$pod\", job=\"$job\"})",
649+
"expr": "sum(grafana_operator_reconciler_initial_sync_duration{$k8sClusterLabelKey=\"$cluster\", pod=~\"$pod\", job=\"$job\"})",
650650
"legendFormat": "Dashboards",
651651
"range": true,
652652
"refId": "A"
653-
},
654-
{
655-
"datasource": {
656-
"type": "prometheus",
657-
"uid": "$datasource"
658-
},
659-
"editorMode": "code",
660-
"expr": "sum(grafana_operator_datasources_initial_sync_duration{$k8sClusterLabelKey=\"$cluster\", pod=~\"$pod\", job=\"$job\"})",
661-
"hide": false,
662-
"instant": false,
663-
"legendFormat": "Datasources",
664-
"range": true,
665-
"refId": "B"
666-
},
667-
{
668-
"datasource": {
669-
"type": "prometheus",
670-
"uid": "$datasource"
671-
},
672-
"editorMode": "code",
673-
"expr": "sum(grafana_operator_folders_initial_sync_duration{$k8sClusterLabelKey=\"$cluster\", pod=~\"$pod\", job=\"$job\"})",
674-
"hide": false,
675-
"instant": false,
676-
"legendFormat": "Folders",
677-
"range": true,
678-
"refId": "C"
679653
}
680654
],
681-
"title": "CR Initial Sync Durations",
655+
"title": "CR Initial Sync Duration",
682656
"type": "stat"
683657
},
684658
{
@@ -744,8 +718,8 @@
744718
},
745719
"gridPos": {
746720
"h": 5,
747-
"w": 12,
748-
"x": 12,
721+
"w": 20,
722+
"x": 4,
749723
"y": 9
750724
},
751725
"id": 17,
@@ -769,7 +743,7 @@
769743
"exemplar": false,
770744
"expr": "rate(grafana_operator_reconciler_reconciles{$k8sClusterLabelKey=\"$cluster\", pod=~\"$pod\", job=\"$job\"}[$__rate_interval])",
771745
"instant": false,
772-
"legendFormat": "{{instance_name}}",
746+
"legendFormat": "{{instance_namespace}}/{{instance_name}}",
773747
"range": true,
774748
"refId": "A"
775749
}

0 commit comments

Comments
 (0)