Skip to content

Commit

Permalink
Updated oban dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
akoutmos committed Feb 4, 2021
1 parent c9b2462 commit 50e319e
Showing 1 changed file with 134 additions and 85 deletions.
219 changes: 134 additions & 85 deletions priv/oban.json.eex
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
"editable": false,
"gnetId": null,
"graphTooltip": 1,
"id": 5,
"iteration": 1609648718248,
"id": null,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -308,8 +307,7 @@
"plugins": "Configured Plugins",
"prefix": "Postgres Schema",
"queues": "Configured Queues",
"repo": "Ecto Repo",
"timezone": "Timezone"
"repo": "Ecto Repo"
}
}
}
Expand Down Expand Up @@ -1859,105 +1857,156 @@
"type": "row"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateOranges",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "<%= @datasource_id %>",
"description": "The number of producer events that resulted in jobs being descheduled.",
"description": "A heatmap showing how long jobs to be dispatched.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"y": 121
},
"hiddenSeries": false,
"id": 67,
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 73,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
"show": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"reverseYBuckets": false,
"targets": [
{
"expr": "irate(<%= @otp_app %>_prom_ex_oban_producer_total{job=\"$job\", instance=\"$instance\", name=\"$oban\", action=\"deschedule\"}[$interval])",
"expr": "sum(irate(<%= @otp_app %>_prom_ex_oban_producer_duration_milliseconds_bucket{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval])) by (le)",
"format": "heatmap",
"hide": false,
"interval": "",
"legendFormat": "{{ queue }}",
"legendFormat": "{{ le }}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Descheduled Jobs",
"title": "Producer Dispatch Time",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
"show": true,
"showHistogram": true
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "ms",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"values": []
"splitFactor": null
},
"yaxes": [
{
"format": "short",
"label": "Number of Jobs",
"logBase": 1,
"max": null,
"min": null,
"show": true
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateOranges",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": "<%= @datasource_id %>",
"description": "A heatmap showing the number of jobs that were dispatched.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 121
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 74,
"legend": {
"show": true
},
"pluginVersion": "7.1.3",
"reverseYBuckets": false,
"targets": [
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": false
"expr": "sum(irate(<%= @otp_app %>_prom_ex_oban_producer_dispatched_count_bucket{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval])) by (le)",
"format": "heatmap",
"hide": false,
"interval": "",
"legendFormat": "{{ le }}",
"refId": "A"
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
"timeFrom": null,
"timeShift": null,
"title": "Producer Dispatch Count",
"tooltip": {
"show": true,
"showHistogram": true
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "locale",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": null
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "<%= @datasource_id %>",
"description": "The number of producer events that resulted in jobs being dispatched.",
"description": "The average amount of time it took to dispatch jobs to each queue.",
"fieldConfig": {
"defaults": {
"custom": {}
Expand All @@ -1969,11 +2018,11 @@
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 121
"x": 0,
"y": 134
},
"hiddenSeries": false,
"id": 68,
"id": 67,
"legend": {
"avg": false,
"current": false,
Expand All @@ -1997,7 +2046,7 @@
"steppedLine": false,
"targets": [
{
"expr": "irate(<%= @otp_app %>_prom_ex_oban_producer_total{job=\"$job\", instance=\"$instance\", name=\"$oban\", action=\"dispatch\"}[$interval])",
"expr": "irate(<%= @otp_app %>_prom_ex_oban_producer_duration_milliseconds_sum{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval]) / irate(<%= @otp_app %>_prom_ex_oban_producer_duration_milliseconds_count{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval])",
"interval": "",
"legendFormat": "{{ queue }}",
"refId": "A"
Expand All @@ -2007,7 +2056,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Dispatched Jobs",
"title": "Average Dispatch Time",
"tooltip": {
"shared": true,
"sort": 0,
Expand All @@ -2023,7 +2072,7 @@
},
"yaxes": [
{
"format": "short",
"format": "ms",
"label": "Number of Jobs",
"logBase": 1,
"max": null,
Expand All @@ -2050,7 +2099,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "<%= @datasource_id %>",
"description": "The number of descheduled producer events that resulted in errors.",
"description": "The average number of jobs dispatched to each queue.",
"fieldConfig": {
"defaults": {
"custom": {}
Expand All @@ -2062,11 +2111,11 @@
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"x": 12,
"y": 134
},
"hiddenSeries": false,
"id": 69,
"id": 75,
"legend": {
"avg": false,
"current": false,
Expand All @@ -2090,7 +2139,7 @@
"steppedLine": false,
"targets": [
{
"expr": "irate(<%= @otp_app %>_prom_ex_oban_producer_exception_total{job=\"$job\", instance=\"$instance\", name=\"$oban\", action=\"deschedule\"}[$interval])",
"expr": "irate(<%= @otp_app %>_prom_ex_oban_producer_dispatched_count_sum{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval]) / irate(<%= @otp_app %>_prom_ex_oban_producer_dispatched_count_count{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval])",
"interval": "",
"legendFormat": "{{ queue }}",
"refId": "A"
Expand All @@ -2100,7 +2149,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Job Descheduling Errors",
"title": "Average Dispatch Count",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -2143,7 +2192,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "<%= @datasource_id %>",
"description": "The number of dispatch producer events that resulted in errors.",
"description": "The average amount of time it took to encounter an encounter an error.",
"fieldConfig": {
"defaults": {
"custom": {}
Expand All @@ -2155,11 +2204,11 @@
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 134
"x": 0,
"y": 147
},
"hiddenSeries": false,
"id": 71,
"id": 76,
"legend": {
"avg": false,
"current": false,
Expand All @@ -2183,7 +2232,7 @@
"steppedLine": false,
"targets": [
{
"expr": "irate(<%= @otp_app %>_prom_ex_oban_producer_exception_total{job=\"$job\", instance=\"$instance\", name=\"$oban\", action=\"dispatch\"}[$interval])",
"expr": "irate(<%= @otp_app %>_prom_ex_oban_producer_exception_duration_milliseconds_sum{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval]) / irate(<%= @otp_app %>_prom_ex_oban_producer_exception_duration_milliseconds_count{job=\"$job\", instance=\"$instance\", name=\"$oban\"}[$interval])",
"interval": "",
"legendFormat": "{{ queue }}",
"refId": "A"
Expand All @@ -2193,7 +2242,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Job Dispatching Errors",
"title": "Average Exception Duration",
"tooltip": {
"shared": true,
"sort": 0,
Expand All @@ -2209,7 +2258,7 @@
},
"yaxes": [
{
"format": "short",
"format": "ms",
"label": "Number of Jobs",
"logBase": 1,
"max": null,
Expand Down Expand Up @@ -2237,7 +2286,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 147
"y": 160
},
"id": 65,
"panels": [],
Expand All @@ -2263,7 +2312,7 @@
"h": 13,
"w": 12,
"x": 0,
"y": 148
"y": 161
},
"hiddenSeries": false,
"id": 70,
Expand Down Expand Up @@ -2356,7 +2405,7 @@
"h": 13,
"w": 12,
"x": 12,
"y": 148
"y": 161
},
"hiddenSeries": false,
"id": 72,
Expand Down

0 comments on commit 50e319e

Please sign in to comment.