Skip to content

[usage] Update usage dashboard to track scheduled jobs #12962

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

Merged
merged 1 commit into from
Sep 14, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 68,
"iteration": 1658784406433,
"links": [],
"liveNow": false,
"panels": [
Expand All @@ -51,6 +49,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -107,7 +107,8 @@
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand Down Expand Up @@ -141,6 +142,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -197,7 +200,8 @@
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand Down Expand Up @@ -240,9 +244,9 @@
"x": 0,
"y": 9
},
"id": 2,
"id": 14,
"panels": [],
"title": "Usage Controller",
"title": "Scheduled jobs",
"type": "row"
},
{
Expand All @@ -257,6 +261,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "# of events",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -312,7 +318,8 @@
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand All @@ -326,8 +333,8 @@
"uid": "P4169E866C3094E38"
},
"editorMode": "code",
"expr": "sum(increase(gitpod_usage_reconcile_started_total{cluster=~\"$cluster\"}[1m]))",
"legendFormat": "Reconcile started",
"expr": "sum(increase(gitpod_usage_scheduler_job_started_total{cluster=~\"$cluster\"}[1m])) by (job)",
"legendFormat": "{{job}} started",
"range": true,
"refId": "A"
},
Expand All @@ -338,15 +345,15 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(increase(gitpod_usage_reconcile_completed_duration_seconds_count{cluster=~\"$cluster\"}[1m])) by (outcome)",
"expr": "sum(increase(gitpod_usage_scheduler_job_completed_seconds_count{cluster=~\"$cluster\"}[1m])) by (job, outcome)",
"hide": false,
"instant": false,
"legendFormat": "Reconcile completed: {{outcome}}",
"legendFormat": "{{job}} completed: {{outcome}}",
"range": true,
"refId": "B"
}
],
"title": "Usage Controller Ticks",
"title": "Scheduled jobs started & completed",
"type": "timeseries"
},
{
Expand All @@ -361,6 +368,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisGridShow": true,
"axisLabel": "",
"axisPlacement": "auto",
Expand Down Expand Up @@ -418,7 +427,8 @@
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand All @@ -432,7 +442,7 @@
"uid": "P4169E866C3094E38"
},
"editorMode": "code",
"expr": "histogram_quantile(0.5, sum(rate(gitpod_usage_reconcile_completed_duration_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
"expr": "histogram_quantile(0.5, sum(rate(gitpod_usage_scheduler_job_completed_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
"legendFormat": "50th percentile",
"range": true,
"refId": "A"
Expand All @@ -443,18 +453,18 @@
"uid": "P4169E866C3094E38"
},
"editorMode": "code",
"expr": "histogram_quantile(0.9, sum(rate(gitpod_usage_reconcile_completed_duration_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
"expr": "histogram_quantile(0.9, sum(rate(gitpod_usage_scheduler_job_completed_seconds_bucket{cluster=~\"$cluster\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "90th percentile",
"range": true,
"refId": "B"
}
],
"title": "Tick Duration",
"title": "Scheduled job duration",
"type": "timeseries"
}
],
"schemaVersion": 36,
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
Expand Down Expand Up @@ -561,6 +571,6 @@
"timezone": "utc",
"title": "Component: Usage",
"uid": "8W7P-jg4z",
"version": 8,
"version": 1,
"weekStart": "monday"
}