From 125801ec5b9f24e9f5ab65feed336a960ae4ce7d Mon Sep 17 00:00:00 2001 From: Elijah DeLee Date: Fri, 26 Aug 2022 15:42:40 -0400 Subject: [PATCH] add panel to grafana dashboard for capacity also reorganize so there are two columns of panels, not just one long skinny set of panels --- tools/grafana/dashboards/demo_dashboard.json | 117 ++++++++++++++++--- 1 file changed, 103 insertions(+), 14 deletions(-) diff --git a/tools/grafana/dashboards/demo_dashboard.json b/tools/grafana/dashboards/demo_dashboard.json index c23a005d16..b909fdd541 100644 --- a/tools/grafana/dashboards/demo_dashboard.json +++ b/tools/grafana/dashboards/demo_dashboard.json @@ -85,10 +85,96 @@ }, "gridPos": { "h": 8, - "w": 12, + "w": 24, "x": 0, "y": 0 }, + "id": 8, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "expr": "awx_status_total", + "refId": "A" + } + ], + "title": "job status", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, "id": 12, "options": { "legend": { @@ -199,7 +285,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 8 }, "id": 10, @@ -458,8 +544,8 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, - "y": 24 + "x": 12, + "y": 16 }, "id": 18, "options": { @@ -556,9 +642,9 @@ "h": 8, "w": 12, "x": 0, - "y": 32 + "y": 24 }, - "id": 8, + "id": 14, "options": { "legend": { "calcs": [], @@ -576,11 +662,14 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "awx_status_total", + "editorMode": "builder", + "expr": "awx_database_connections_total", + "legendFormat": "__auto", + "range": true, "refId": "A" } ], - "title": "job status", + "title": "Database", "type": "timeseries" }, { @@ -641,10 +730,10 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, - "y": 40 + "x": 12, + "y": 24 }, - "id": 14, + "id": 20, "options": { "legend": { "calcs": [], @@ -663,13 +752,13 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "builder", - "expr": "awx_database_connections_total", + "expr": "awx_instance_consumed_capacity", "legendFormat": "__auto", "range": true, "refId": "A" } ], - "title": "Database", + "title": "Consumed Instance Capacity", "type": "timeseries" } ], @@ -688,6 +777,6 @@ "timezone": "", "title": "awx-demo", "uid": "GISWZOXnk", - "version": 2, + "version": 4, "weekStart": "" }