From 4357362973eeca251408dab28a64e73d33ed1f90 Mon Sep 17 00:00:00 2001 From: cskh Date: Mon, 18 Sep 2023 13:23:02 -0400 Subject: [PATCH] grafana: display connected consul-dataplanes (#18842) --- .../consul-k8s-control-plane-monitoring.json | 161 +++++++++++------- 1 file changed, 103 insertions(+), 58 deletions(-) diff --git a/grafana/consul-k8s-control-plane-monitoring.json b/grafana/consul-k8s-control-plane-monitoring.json index e84fe8c6b9..f0ca249b37 100644 --- a/grafana/consul-k8s-control-plane-monitoring.json +++ b/grafana/consul-k8s-control-plane-monitoring.json @@ -24,7 +24,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 1, + "id": 3, "links": [], "liveNow": false, "panels": [ @@ -113,7 +113,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "No data in agentless mode", + "description": "", "fieldConfig": { "defaults": { "mappings": [], @@ -140,7 +140,7 @@ "x": 6, "y": 1 }, - "id": 29, + "id": 60, "options": { "colorMode": "value", "graphMode": "none", @@ -162,9 +162,9 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "code", + "editorMode": "builder", "exemplar": false, - "expr": "count(kube_pod_container_resource_limits{pod=~\"consul-client-.*\", container=\"consul\", resource=\"memory\"})", + "expr": "count(consul_dataplane_envoy_connected)", "hide": false, "instant": true, "legendFormat": "__auto", @@ -172,7 +172,7 @@ "refId": "A" } ], - "title": "Number of Consul Clients (No data in agentless mode)", + "title": "Number of Connected Consul-dataplanes", "type": "stat" }, { @@ -270,13 +270,80 @@ "title": "Number of Leader (1: Healthy)", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "No data in agentless mode", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 6, + "y": 9 + }, + "id": 29, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(kube_pod_container_resource_limits{pod=~\"consul-client-.*\", container=\"consul\", resource=\"memory\"})", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Number of Consul Clients (No data in agentless mode)", + "type": "stat" + }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 9 + "y": 17 }, "id": 40, "panels": [ @@ -326,8 +393,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -431,8 +497,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -535,8 +600,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -639,8 +703,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -731,8 +794,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -824,8 +886,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -917,8 +978,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -974,7 +1034,7 @@ "h": 1, "w": 24, "x": 0, - "y": 10 + "y": 18 }, "id": 43, "panels": [ @@ -1172,7 +1232,7 @@ "h": 1, "w": 24, "x": 0, - "y": 11 + "y": 19 }, "id": 14, "panels": [ @@ -1221,8 +1281,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1297,8 +1356,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1393,8 +1451,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1458,8 +1515,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1555,8 +1611,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1614,7 +1669,7 @@ "h": 1, "w": 24, "x": 0, - "y": 12 + "y": 20 }, "id": 24, "panels": [ @@ -1957,7 +2012,7 @@ "h": 1, "w": 24, "x": 0, - "y": 13 + "y": 21 }, "id": 54, "panels": [ @@ -2006,8 +2061,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2082,8 +2136,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2178,8 +2231,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2243,8 +2295,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2304,7 +2355,7 @@ "h": 1, "w": 24, "x": 0, - "y": 14 + "y": 22 }, "id": 30, "panels": [ @@ -2500,7 +2551,7 @@ "h": 1, "w": 24, "x": 0, - "y": 15 + "y": 23 }, "id": 49, "panels": [ @@ -2880,7 +2931,7 @@ "h": 1, "w": 24, "x": 0, - "y": 16 + "y": 24 }, "id": 33, "panels": [ @@ -2930,8 +2981,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3023,8 +3073,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3116,8 +3165,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3209,8 +3257,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3302,8 +3349,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3395,8 +3441,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red",