Skip to content

Commit 6678207

Browse files
committed
Add "Top Slowest Script Tasks" gauge to MainDashboard
1 parent 5771804 commit 6678207

1 file changed

Lines changed: 79 additions & 2 deletions

File tree

‎resources/grafana/MainDashboard.json‎

Lines changed: 79 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,83 @@
946946
],
947947
"title": "Script Task Completion Time series",
948948
"type": "timeseries"
949+
},
950+
{
951+
"datasource": {
952+
"type": "prometheus",
953+
"uid": "de96jy15v6qrkc"
954+
},
955+
"description": "Top Slowest Tasks",
956+
"fieldConfig": {
957+
"defaults": {
958+
"color": {
959+
"mode": "thresholds"
960+
},
961+
"fieldMinMax": false,
962+
"mappings": [],
963+
"min": 0,
964+
"thresholds": {
965+
"mode": "absolute",
966+
"steps": [
967+
{
968+
"color": "green",
969+
"value": null
970+
},
971+
{
972+
"color": "red",
973+
"value": 80
974+
}
975+
]
976+
},
977+
"unit": "ms"
978+
},
979+
"overrides": []
980+
},
981+
"gridPos": {
982+
"h": 8,
983+
"w": 12,
984+
"x": 0,
985+
"y": 40
986+
},
987+
"id": 11,
988+
"interval": "15s",
989+
"options": {
990+
"minVizHeight": 75,
991+
"minVizWidth": 75,
992+
"orientation": "auto",
993+
"reduceOptions": {
994+
"calcs": [],
995+
"fields": "",
996+
"values": false
997+
},
998+
"showThresholdLabels": false,
999+
"showThresholdMarkers": true,
1000+
"sizing": "auto"
1001+
},
1002+
"pluginVersion": "11.4.0",
1003+
"targets": [
1004+
{
1005+
"datasource": {
1006+
"type": "prometheus",
1007+
"uid": "de96jy15v6qrkc"
1008+
},
1009+
"disableTextWrap": false,
1010+
"editorMode": "code",
1011+
"exemplar": false,
1012+
"expr": "topk(10, avg(processmaker_activity_execution_time_seconds_sum{element_type=\"scriptTask\"}) by (process_id, activity_name))",
1013+
"format": "time_series",
1014+
"fullMetaSearch": false,
1015+
"includeNullMetadata": true,
1016+
"instant": false,
1017+
"interval": "",
1018+
"legendFormat": "{{activity_name}} (process={{process_id}})",
1019+
"range": true,
1020+
"refId": "A",
1021+
"useBackend": false
1022+
}
1023+
],
1024+
"title": "Top Slowest Script Tasks",
1025+
"type": "gauge"
9491026
}
9501027
],
9511028
"preload": false,
@@ -955,13 +1032,13 @@
9551032
"list": []
9561033
},
9571034
"time": {
958-
"from": "now-6h",
1035+
"from": "now-30d",
9591036
"to": "now"
9601037
},
9611038
"timepicker": {},
9621039
"timezone": "browser",
9631040
"title": "ProcessMaker Dashboard",
9641041
"uid": "be96wxsnlmn7kc",
965-
"version": 43,
1042+
"version": 45,
9661043
"weekStart": ""
9671044
}

0 commit comments

Comments
 (0)