Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pie chart for highest build time by package #452

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 87 additions & 4 deletions k8s/prometheus/custom/pipeline-user-impact-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,93 @@ data:
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 31,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "postgres",
"uid": "PCC52D03280B7034C"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 0
},
"id": 6,
"options": {
"legend": {
"displayMode": "list",
"placement": "right",
"showLegend": true,
"values": [
"percent"
]
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "postgres",
"uid": "PCC52D03280B7034C"
},
"editorMode": "code",
"format": "table",
"rawQuery": true,
"rawSql": "SELECT\n (regexp_matches(name, '^\\(specs\\) ([^/]+)\\/.+'))[1] as package_name,\n EXTRACT(epoch FROM SUM(finished_at - started_at)) as duration\n -- SUM(finished_at - started_at) as duration\nFROM ci_builds\nWHERE\n \"finished_at\" BETWEEN '2023-03-29T21:23:44.96Z' AND '2023-04-05T15:23:44.96Z'\n AND name LIKE '(specs)%'\n AND finished_at IS NOT NULL AND started_at IS NOT NULL\nGROUP BY package_name\nORDER BY duration DESC\n-- LIMIT 10\n;",
"refId": "A",
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
}
}
],
"title": "Top Packages by Total Build Time",
"transformations": [],
"type": "piechart"
},
{
"datasource": {
"type": "grafana-opensearch-datasource",
Expand Down Expand Up @@ -178,7 +261,7 @@ data:
"h": 8,
"w": 24,
"x": 0,
"y": 0
"y": 8
},
"id": 4,
"interval": "1d",
Expand Down Expand Up @@ -365,7 +448,7 @@ data:
"h": 11,
"w": 24,
"x": 0,
"y": 8
"y": 16
},
"id": 2,
"interval": "6h",
Expand Down Expand Up @@ -483,6 +566,6 @@ data:
"timezone": "",
"title": "Pipeline User Impact",
"uid": "8kOGTDYVk",
"version": 6,
"version": 1,
"weekStart": ""
}