Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Operator status panels #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions charts/cluster/grafana-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -2235,7 +2235,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum by (label_app_kubernetes_io_name) (kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})",
"expr": "count(\r\n sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} == 1)\r\n by (pod,namespace)\r\n * on (pod) group_left()\r\n count(controller_runtime_webhook_requests_total{namespace=\"$operatorNamespace\",webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"}) by (pod)\r\n) or vector(0)",
"hide": false,
"instant": false,
"legendFormat": "Operator Status",
Expand Down Expand Up @@ -7995,7 +7995,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})",
"expr": "count(\r\n sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} == 1)\r\n by (pod,namespace)\r\n * on (pod) group_left()\r\n count(controller_runtime_webhook_requests_total{namespace=\"$operatorNamespace\",webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"}) by (pod)\r\n) or vector(0)",
"hide": false,
"instant": true,
"legendFormat": "Ready Operator Pods",
Expand Down Expand Up @@ -8516,7 +8516,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} * on (pod) group_left( label_app_kubernetes_io_name ) kube_pod_labels{label_app_kubernetes_io_name=~\"cloudnative-pg\"})",
"expr": "count(\r\n sum(kube_pod_status_ready{namespace=\"$operatorNamespace\"} == 1)\r\n by (pod,namespace)\r\n * on (pod) group_left()\r\n count(controller_runtime_webhook_requests_total{namespace=\"$operatorNamespace\",webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"}) by (pod)\r\n) or vector(0)",
"hide": false,
"instant": false,
"legendFormat": "Ready Operator Pods",
Expand Down Expand Up @@ -9079,7 +9079,7 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(controller_runtime_active_workers,namespace)",
"definition": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)",
"description": "Namespace where the CNPG operator is located",
"hide": 0,
"includeAll": false,
Expand All @@ -9089,7 +9089,7 @@
"options": [],
"query": {
"qryType": 1,
"query": "label_values(controller_runtime_active_workers,namespace)",
"query": "label_values(controller_runtime_webhook_requests_total{webhook=\"/mutate-postgresql-cnpg-io-v1-cluster\"},namespace)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 2,
Expand Down