From f17f38bf2eeeffe36cbf998a6ad8b7cf11722f03 Mon Sep 17 00:00:00 2001 From: David Callizaya Date: Wed, 15 Jan 2025 14:26:44 -0400 Subject: [PATCH] Add Average Task Completion Time chart to Main Dashboard --- resources/grafana/MainDashboard.json | 152 +++++++++++++-------------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/resources/grafana/MainDashboard.json b/resources/grafana/MainDashboard.json index ad6c128e11..1e367abd99 100644 --- a/resources/grafana/MainDashboard.json +++ b/resources/grafana/MainDashboard.json @@ -605,6 +605,82 @@ "title": "Top Slowest Tasks", "type": "gauge" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-PM-SPRING-2025}" + }, + "description": "Shows task completion distribution by activity and process to highlight execution patterns and identify key task volumes.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "fieldMinMax": false, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 24 + }, + "id": 8, + "interval": "30m", + "options": { + "displayLabels": [ + "percent" + ], + "legend": { + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS-PM-SPRING-2025}" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "sum(processmaker_activity_completed_total) by (activity_name, process_id)", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{activity_name}} (process={{process_id}})", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Completion Count by Task and Process", + "type": "piechart" + }, { "datasource": { "type": "prometheus", @@ -720,82 +796,6 @@ ], "title": "Average Task Completion Time chart", "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS-PM-SPRING-2025}" - }, - "description": "Shows task completion distribution by activity and process to highlight execution patterns and identify key task volumes.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "fieldMinMax": false, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 8, - "interval": "30m", - "options": { - "displayLabels": [ - "percent" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.4.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS-PM-SPRING-2025}" - }, - "disableTextWrap": false, - "editorMode": "code", - "exemplar": false, - "expr": "sum(processmaker_activity_completed_total) by (activity_name, process_id)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "{{activity_name}} (process={{process_id}})", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Completion Count by Task and Process", - "type": "piechart" } ], "schemaVersion": 40,