Skip to content

Commit b0f4189

Browse files
Satyam BhardwajRoming22
authored andcommitted
add Pipeline Service troubleshooting dashboard
The following metrics are being queried:- * pipelinerun_duration_scheduled_seconds Using the expr - `sum by (namespace) ((avg_over_time(pipelinerun_duration_scheduled_seconds_sum[1h]) / avg_over_time(pipelinerun_duration_scheduled_seconds_count[1h])))` We calculate average scheduling duration per PipelineRun in seconds for each namespace over the last 1 hour * tekton_pipelines_controller_pipelinerun_duration_seconds Using the epxr - `sum by (namespace) ((avg_over_time(tekton_pipelines_controller_pipelinerun_duration_seconds_sum{status=\"success\"}[1h]) / avg_over_time(tekton_pipelines_controller_pipelinerun_duration_seconds_count{status=\"success\"}[1h])))` We calculate average duration of successful pipelineruns in seconds over one hour time window grouped by namespace. Signed-off-by: Satyam Bhardwaj <[email protected]>
1 parent ff2dfc9 commit b0f4189

File tree

1 file changed

+187
-7
lines changed

1 file changed

+187
-7
lines changed

operator/gitops/argocd/grafana/dashboards/pipeline-service-dashboard.json

Lines changed: 187 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"gnetId": null,
2222
"graphTooltip": 0,
2323
"id": 18,
24-
"iteration": 1688375985019,
24+
"iteration": 1688375985021,
2525
"links": [],
2626
"panels": [
2727
{
@@ -686,6 +686,13 @@
686686
"textMode": "auto"
687687
},
688688
"pluginVersion": "7.5.17",
689+
"scopedVars": {
690+
"datasource": {
691+
"selected": true,
692+
"text": "prometheus-appstudio-ds",
693+
"value": "prometheus-appstudio-ds"
694+
}
695+
},
689696
"targets": [
690697
{
691698
"exemplar": true,
@@ -746,6 +753,13 @@
746753
"textMode": "auto"
747754
},
748755
"pluginVersion": "7.5.17",
756+
"scopedVars": {
757+
"datasource": {
758+
"selected": true,
759+
"text": "prometheus-appstudio-ds",
760+
"value": "prometheus-appstudio-ds"
761+
}
762+
},
749763
"targets": [
750764
{
751765
"exemplar": true,
@@ -801,6 +815,13 @@
801815
"pointradius": 2,
802816
"points": false,
803817
"renderer": "flot",
818+
"scopedVars": {
819+
"datasource": {
820+
"selected": true,
821+
"text": "prometheus-appstudio-ds",
822+
"value": "prometheus-appstudio-ds"
823+
}
824+
},
804825
"seriesOverrides": [],
805826
"spaceLength": 10,
806827
"stack": false,
@@ -921,6 +942,13 @@
921942
}
922943
},
923944
"pluginVersion": "7.5.17",
945+
"scopedVars": {
946+
"datasource": {
947+
"selected": true,
948+
"text": "prometheus-appstudio-ds",
949+
"value": "prometheus-appstudio-ds"
950+
}
951+
},
924952
"targets": [
925953
{
926954
"exemplar": true,
@@ -999,6 +1027,13 @@
9991027
}
10001028
},
10011029
"pluginVersion": "7.5.17",
1030+
"scopedVars": {
1031+
"datasource": {
1032+
"selected": true,
1033+
"text": "prometheus-appstudio-ds",
1034+
"value": "prometheus-appstudio-ds"
1035+
}
1036+
},
10021037
"targets": [
10031038
{
10041039
"exemplar": true,
@@ -1077,6 +1112,13 @@
10771112
}
10781113
},
10791114
"pluginVersion": "7.5.17",
1115+
"scopedVars": {
1116+
"datasource": {
1117+
"selected": true,
1118+
"text": "prometheus-appstudio-ds",
1119+
"value": "prometheus-appstudio-ds"
1120+
}
1121+
},
10801122
"targets": [
10811123
{
10821124
"exemplar": true,
@@ -1098,6 +1140,144 @@
10981140
"x": 0,
10991141
"y": 54
11001142
},
1143+
"id": 43,
1144+
"panels": [],
1145+
"repeat": "datasource",
1146+
"scopedVars": {
1147+
"datasource": {
1148+
"selected": true,
1149+
"text": "prometheus-appstudio-ds",
1150+
"value": "prometheus-appstudio-ds"
1151+
}
1152+
},
1153+
"title": "Pipelines Troubleshooting",
1154+
"type": "row"
1155+
},
1156+
{
1157+
"datasource": null,
1158+
"description": "Average duration of successful Pipelineruns in seconds over one hour time window grouped by namespace.",
1159+
"fieldConfig": {
1160+
"defaults": {
1161+
"color": {
1162+
"mode": "thresholds"
1163+
},
1164+
"mappings": [],
1165+
"thresholds": {
1166+
"mode": "absolute",
1167+
"steps": [
1168+
{
1169+
"color": "green",
1170+
"value": null
1171+
},
1172+
{
1173+
"color": "red",
1174+
"value": 80
1175+
}
1176+
]
1177+
}
1178+
},
1179+
"overrides": []
1180+
},
1181+
"gridPos": {
1182+
"h": 8,
1183+
"w": 12,
1184+
"x": 0,
1185+
"y": 55
1186+
},
1187+
"id": 45,
1188+
"options": {
1189+
"displayMode": "gradient",
1190+
"orientation": "horizontal",
1191+
"reduceOptions": {
1192+
"calcs": [
1193+
"lastNotNull"
1194+
],
1195+
"fields": "",
1196+
"values": false
1197+
},
1198+
"showUnfilled": true,
1199+
"text": {}
1200+
},
1201+
"pluginVersion": "7.5.17",
1202+
"targets": [
1203+
{
1204+
"exemplar": true,
1205+
"expr": "sum by (namespace) ((avg_over_time(tekton_pipelines_controller_pipelinerun_duration_seconds_sum{status=\"success\"}[1h]) / avg_over_time(tekton_pipelines_controller_pipelinerun_duration_seconds_count{status=\"success\"}[1h])))",
1206+
"interval": "",
1207+
"legendFormat": "",
1208+
"refId": "A"
1209+
}
1210+
],
1211+
"title": "Average duration of successful pipelineruns",
1212+
"type": "bargauge"
1213+
},
1214+
{
1215+
"datasource": null,
1216+
"description": "Average scheduling duration per PipelineRun in seconds for each namespace over the last 1 hour",
1217+
"fieldConfig": {
1218+
"defaults": {
1219+
"color": {
1220+
"mode": "thresholds"
1221+
},
1222+
"mappings": [],
1223+
"thresholds": {
1224+
"mode": "absolute",
1225+
"steps": [
1226+
{
1227+
"color": "green",
1228+
"value": null
1229+
},
1230+
{
1231+
"color": "red",
1232+
"value": 80
1233+
}
1234+
]
1235+
}
1236+
},
1237+
"overrides": []
1238+
},
1239+
"gridPos": {
1240+
"h": 8,
1241+
"w": 12,
1242+
"x": 12,
1243+
"y": 55
1244+
},
1245+
"id": 47,
1246+
"options": {
1247+
"displayMode": "gradient",
1248+
"orientation": "horizontal",
1249+
"reduceOptions": {
1250+
"calcs": [
1251+
"lastNotNull"
1252+
],
1253+
"fields": "",
1254+
"values": false
1255+
},
1256+
"showUnfilled": true,
1257+
"text": {}
1258+
},
1259+
"pluginVersion": "7.5.17",
1260+
"targets": [
1261+
{
1262+
"exemplar": true,
1263+
"expr": "sum by (namespace) ((avg_over_time(pipelinerun_duration_scheduled_seconds_sum[1h]) / avg_over_time(pipelinerun_duration_scheduled_seconds_count[1h])))",
1264+
"interval": "",
1265+
"legendFormat": "",
1266+
"refId": "A"
1267+
}
1268+
],
1269+
"title": "Average scheduling duration",
1270+
"type": "bargauge"
1271+
},
1272+
{
1273+
"collapsed": false,
1274+
"datasource": null,
1275+
"gridPos": {
1276+
"h": 1,
1277+
"w": 24,
1278+
"x": 0,
1279+
"y": 63
1280+
},
11011281
"id": 17,
11021282
"panels": [],
11031283
"repeat": "datasource",
@@ -1128,7 +1308,7 @@
11281308
"h": 8,
11291309
"w": 12,
11301310
"x": 0,
1131-
"y": 55
1311+
"y": 64
11321312
},
11331313
"hiddenSeries": false,
11341314
"id": 21,
@@ -1233,7 +1413,7 @@
12331413
"h": 8,
12341414
"w": 12,
12351415
"x": 12,
1236-
"y": 55
1416+
"y": 64
12371417
},
12381418
"hiddenSeries": false,
12391419
"id": 19,
@@ -1338,7 +1518,7 @@
13381518
"h": 8,
13391519
"w": 12,
13401520
"x": 0,
1341-
"y": 63
1521+
"y": 72
13421522
},
13431523
"hiddenSeries": false,
13441524
"id": 27,
@@ -1443,7 +1623,7 @@
14431623
"h": 8,
14441624
"w": 12,
14451625
"x": 12,
1446-
"y": 63
1626+
"y": 72
14471627
},
14481628
"hiddenSeries": false,
14491629
"id": 25,
@@ -1547,7 +1727,7 @@
15471727
"h": 8,
15481728
"w": 12,
15491729
"x": 0,
1550-
"y": 71
1730+
"y": 80
15511731
},
15521732
"hiddenSeries": false,
15531733
"id": 23,
@@ -1673,4 +1853,4 @@
16731853
"title": "Pipeline Service",
16741854
"uid": "02ebfdefeeed166624895c36b0c1af4ed3006c5d",
16751855
"version": 4
1676-
}
1856+
}

0 commit comments

Comments
 (0)