{{- if .Values.postgres_operator.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: cnpg-dashboard namespace: prometheus labels: grafana_dashboard: "1" app.kubernetes.io/instance: prometheus-community app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: grafana app.kubernetes.io/version: 9.1.7 helm.sh/chart: grafana-6.40.4 data: cnp.json: |- { "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "gnetId": null, "graphTooltip": 0, "iteration": 1637064390546, "links": [], "liveNow": false, "panels": [ { "collapsed": false, "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 12, "panels": [], "title": "Server Health", "type": "row" }, { "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 3, "x": 0, "y": 1 }, "id": 191, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Instance", "transparent": true, "type": "text" }, { "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 2, "x": 3, "y": 1 }, "id": 192, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Status", "type": "text" }, { "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 4, "x": 5, "y": 1 }, "id": 193, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Clustering / replicas", "type": "text" }, { "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 5, "x": 9, "y": 1 }, "id": 195, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Connections", "type": "text" }, { "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 3, "x": 14, "y": 1 }, "id": 196, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Max Connections", "type": "text" }, { "datasource": "${DataSource}", "description": "", "gridPos": { "h": 1, "w": 3, "x": 17, "y": 1 }, "id": 197, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Wraparound", "type": "text" }, { "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 2, "x": 20, "y": 1 }, "id": 313, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Started", "type": "text" }, { "datasource": "${DataSource}", "gridPos": { "h": 1, "w": 2, "x": 22, "y": 1 }, "id": 198, "options": { "content": "", "mode": "html" }, "pluginVersion": "8.2.1", "repeatDirection": "v", "targets": [ { "exemplar": true, "expr": "kube_pod_container_status_ready{container=\"postgres\",namespace=~\"$namespace\",pod=~\"$instances\"}", "instant": true, "interval": "", "legendFormat": "{{`{{pod}}`}}", "refId": "A" } ], "title": "Server Version", "type": "text" }, { "datasource": "${DataSource}", "gridPos": { "h": 3, "w": 3, "x": 0, "y": 2 }, "id": 61, "options": { "content": "
$instances \n | \n
$instances \n | \n