diff options
author | Elijah DeLee <kdelee@redhat.com> | 2022-09-14 22:03:35 +0200 |
---|---|---|
committer | Elijah DeLee <kdelee@redhat.com> | 2022-09-14 22:23:53 +0200 |
commit | 461b5221f37ef85e0df1b24d7168b450dc80a463 (patch) | |
tree | 5c226d1cbd1a02e2104879378e6cc4bb617be458 /tools/grafana | |
parent | add alerting rule to grafana (diff) | |
download | awx-461b5221f37ef85e0df1b24d7168b450dc80a463.tar.xz awx-461b5221f37ef85e0df1b24d7168b450dc80a463.zip |
Add graphs for job event processing to dashboard
Diffstat (limited to 'tools/grafana')
-rw-r--r-- | tools/grafana/dashboards/demo_dashboard.json | 454 |
1 files changed, 378 insertions, 76 deletions
diff --git a/tools/grafana/dashboards/demo_dashboard.json b/tools/grafana/dashboards/demo_dashboard.json index 62570500f4..49ab3ed487 100644 --- a/tools/grafana/dashboards/demo_dashboard.json +++ b/tools/grafana/dashboards/demo_dashboard.json @@ -39,6 +39,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -85,7 +87,7 @@ }, "gridPos": { "h": 8, - "w": 24, + "w": 12, "x": 0, "y": 0 }, @@ -94,7 +96,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -125,11 +128,13 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", - "fillOpacity": 0, + "fillOpacity": 32, "gradientMode": "none", "hideFrom": { "legend": false, @@ -159,28 +164,64 @@ { "color": "green", "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "{instance=\"awx1:8013\", job=\"awx\", node=\"awx_1\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } }, { - "color": "red", - "value": 80 + "id": "displayName", + "value": "Job Events Processed/Minute" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{__name__=\"callback_receiver_events_queue_size_redis\", instance=\"awx1:8013\", job=\"awx\", node=\"awx_1\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-red", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "Redis Queue Size" } ] } - }, - "overrides": [] + ] }, "gridPos": { "h": 8, "w": 12, - "x": 0, - "y": 8 + "x": 12, + "y": 0 }, - "id": 12, + "id": 24, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -193,7 +234,10 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "task_manager_running_processed", + "editorMode": "builder", + "expr": "callback_receiver_events_queue_size_redis", + "legendFormat": "__auto", + "range": true, "refId": "A" }, { @@ -201,30 +245,107 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "task_manager_pending_processed", + "editorMode": "code", + "expr": "irate(callback_receiver_events_insert_db[1m])*60", "hide": false, + "legendFormat": "__auto", + "range": true, "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" + } + ], + "title": "Redis Queue Size vs. Job Events Processed/Minute", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - "expr": "task_manager_tasks_blocked", - "hide": false, - "refId": "D" + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "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": 20, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "task_manager_tasks_started", - "hide": false, - "refId": "C" + "editorMode": "builder", + "expr": "awx_instance_consumed_capacity", + "legendFormat": "__auto", + "range": true, + "refId": "A" } ], - "title": "Task manager workload", + "title": "Consumed Instance Capacity", "type": "timeseries" }, { @@ -238,20 +359,25 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", - "fillOpacity": 0, + "fillOpacity": 18, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, - "lineInterpolation": "linear", + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, "lineWidth": 1, - "pointSize": 5, + "pointSize": 6, "scaleDistribution": { "type": "linear" }, @@ -280,7 +406,27 @@ ] } }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "{__name__=\"callback_receiver_event_processing_avg_seconds\", instance=\"awx1:8013\", job=\"awx\", node=\"awx_1\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "Avg Job Event Processing Lag Time" + } + ] + } + ] }, "gridPos": { "h": 8, @@ -288,12 +434,13 @@ "x": 12, "y": 8 }, - "id": 10, + "id": 26, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -307,61 +454,156 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "builder", - "expr": "task_manager_process_pending_tasks_seconds", + "expr": "callback_receiver_event_processing_avg_seconds", "legendFormat": "__auto", "range": true, "refId": "A" + } + ], + "title": "Avg Job Event Processing Lag Time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "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": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "task_manager_pending_processed{instance=\"awx1:8013\", job=\"awx\", node=\"awx_1\"}", + "task_manager_running_processed{instance=\"awx1:8013\", job=\"awx\", node=\"awx_1\"}", + "task_manager_tasks_started{instance=\"awx1:8013\", job=\"awx\", node=\"awx_1\"}" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 12, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "builder", - "expr": "task_manager_process_running_tasks_seconds", - "hide": false, - "legendFormat": "__auto", - "range": true, - "refId": "B" + "expr": "task_manager_running_processed", + "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "builder", - "expr": "task_manager_get_tasks_seconds", + "expr": "task_manager_pending_processed", "hide": false, - "legendFormat": "__auto", - "range": true, - "refId": "D" + "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "builder", - "expr": "task_manager_commit_seconds", + "expr": "task_manager_tasks_blocked", "hide": false, - "legendFormat": "__auto", - "range": true, - "refId": "C" + "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "builder", - "expr": "task_manager__schedule_seconds", + "expr": "task_manager_tasks_started", "hide": false, - "legendFormat": "__auto", - "range": true, - "refId": "E" + "refId": "C" } ], - "title": "Task manager timings", + "title": "Task manager workload", "type": "timeseries" }, { @@ -376,6 +618,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -423,7 +667,7 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 16 }, "id": 16, @@ -431,7 +675,8 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -497,6 +742,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -544,15 +791,16 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 16 + "x": 0, + "y": 24 }, - "id": 18, + "id": 10, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -566,7 +814,7 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "builder", - "expr": "workflow_manager__schedule_seconds", + "expr": "task_manager_process_pending_tasks_seconds", "legendFormat": "__auto", "range": true, "refId": "A" @@ -576,11 +824,51 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, + "editorMode": "builder", + "expr": "task_manager_process_running_tasks_seconds", "hide": false, + "legendFormat": "__auto", + "range": true, "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "builder", + "expr": "task_manager_get_tasks_seconds", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "builder", + "expr": "task_manager_commit_seconds", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "builder", + "expr": "task_manager__schedule_seconds", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "E" } ], - "title": "Workflow Manager Timings", + "title": "Task manager timings", "type": "timeseries" }, { @@ -594,6 +882,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -641,15 +931,16 @@ "gridPos": { "h": 8, "w": 12, - "x": 0, + "x": 12, "y": 24 }, - "id": 14, + "id": 18, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -663,13 +954,21 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "builder", - "expr": "awx_database_connections_total", + "expr": "workflow_manager__schedule_seconds", "legendFormat": "__auto", "range": true, "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "hide": false, + "refId": "B" } ], - "title": "Database", + "title": "Workflow Manager Timings", "type": "timeseries" }, { @@ -683,6 +982,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -730,15 +1031,16 @@ "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 24 + "x": 0, + "y": 32 }, - "id": 20, + "id": 14, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -752,18 +1054,18 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "builder", - "expr": "awx_instance_consumed_capacity", + "expr": "awx_database_connections_total", "legendFormat": "__auto", "range": true, "refId": "A" } ], - "title": "Consumed Instance Capacity", + "title": "Database", "type": "timeseries" } ], - "refresh": "5s", - "schemaVersion": 36, + "refresh": false, + "schemaVersion": 37, "style": "dark", "tags": [], "templating": { @@ -777,6 +1079,6 @@ "timezone": "", "title": "awx-demo", "uid": "GISWZOXnk", - "version": 3, + "version": 9, "weekStart": "" } |