diff --git a/dashboards/grafana-dashboard-exhort.configmap.yaml b/dashboards/grafana-dashboard-exhort.configmap.yaml index a941b8c3..8be99517 100644 --- a/dashboards/grafana-dashboard-exhort.configmap.yaml +++ b/dashboards/grafana-dashboard-exhort.configmap.yaml @@ -2,6 +2,43 @@ apiVersion: v1 data: exhort-dashboard.json: |- { + "__inputs": [ + { + "name": "DS_APP-SRE-STAGE-01-PROMETHEUS", + "label": "app-sre-stage-01-prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.8" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -28,13 +65,14 @@ data: "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 173924, + "id": null, + "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -84,7 +122,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "editorMode": "code", "expr": "sum(rate(http_server_requests_seconds_count{status!~\"[4-5].*\", namespace=\"exhort-stage\", job=\"exhort\"}[2m])) / \n(sum(rate(http_server_requests_seconds_count{namespace=\"exhort-stage\", job=\"exhort\"}[2m])) - \n(sum(rate(http_server_requests_seconds_count{status=~\"404|499\", namespace=\"exhort-stage\", job=\"exhort\"}[2m])) or vector(0)))", @@ -99,7 +137,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -182,7 +220,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "editorMode": "code", "expr": "sum(rate(http_server_requests_seconds_count{namespace=\"exhort-stage\", job=\"exhort\"}[2m]))", @@ -199,7 +237,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -282,7 +320,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "editorMode": "code", "expr": "sum(rate(http_server_requests_seconds_count{namespace=\"exhort-stage\", job=\"exhort\"}[2m])) by (uri)", @@ -298,7 +336,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -382,7 +420,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "editorMode": "code", "expr": "sum(rate(http_server_requests_seconds_count{namespace=~\"exhort-stage\", job=\"exhort\", status!~\"5..\"}[7d]))\n/\nsum(rate(http_server_requests_seconds_count{namespace=~\"exhort-stage\", job=\"exhort\"}[7d]))", @@ -397,7 +435,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "description": "", "fieldConfig": { @@ -479,7 +517,7 @@ data: { "datasource": { "type": "prometheus", - "uid": "${datasource}" + "uid": "${DS_APP-SRE-STAGE-01-PROMETHEUS}" }, "editorMode": "code", "expr": "sum(rate(http_server_requests_seconds_count{namespace=~\"exhort-stage\", job=\"exhort\", status!~\"5..\"}[7d]))\n/\nsum(rate(http_server_requests_seconds_count{namespace=~\"exhort-stage\", job=\"exhort\"}[7d]))", @@ -515,7 +553,7 @@ data: "query": "prometheus", "queryValue": "", "refresh": 1, - "regex": "", + "regex": "app-sre-stage-01-prometheus|app-sre-prod-01-prometheus", "skipUrlSync": false, "type": "datasource" } @@ -558,8 +596,5 @@ data: } kind: ConfigMap metadata: + creationTimestamp: null name: grafana-dashboard-exhort - labels: - grafana_dashboard: "true" - annotations: - grafana-folder: /grafana-dashboard-definitions/Trusted-Content