Message Delay Dashboard
Visualize the time span between receiving a message and processing it.
JSON
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "panel",
"id": "bargauge",
"name": "Bar gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.1.1"
},
{
"type": "panel",
"id": "heatmap",
"name": "Heatmap",
"version": ""
},
{
"type": "panel",
"id": "piechart",
"name": "Pie chart",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "locale"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 13,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"valueMode": "color"
},
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "connexion_queue_message_delay_in_s_bucket{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\"}",
"format": "heatmap",
"instant": true,
"interval": "",
"legendFormat": "{{le}}",
"range": false,
"refId": "A"
}
],
"title": "Message Delay Distribution",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"1": "0.5 - 1s",
"5": "1 - 5s",
"10": "5 - 10s",
"30": "10 - 30s",
"60": "30 - 60s",
"300": "1 - 5m",
"1800": "5 - 30m",
"3600": "30 - 60m",
"+Inf": "> 60m",
"0.1": "0 - 100ms",
"0.25": "100 - 250ms",
"0.5": "250 - 500ms"
}
}
}
],
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": [],
"unit": "locale"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 11,
"x": 13,
"y": 0
},
"id": 3,
"options": {
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true,
"values": [
"percent",
"value"
]
},
"pieType": "donut",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.5.5",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "connexion_queue_message_delay_in_s_bucket{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\"}",
"format": "heatmap",
"instant": true,
"interval": "",
"legendFormat": "{{le}}",
"range": false,
"refId": "A"
}
],
"title": "Message Delay Distribution",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"1": "0.5 - 1s",
"5": "1 - 5s",
"10": "5 - 10s",
"30": "10 - 30s",
"60": "30 - 60s",
"300": "1 - 5m",
"1800": "5 - 30m",
"3600": "30 - 60m",
"+Inf": "> 60m",
"0.1": "0 - 100ms",
"0.25": "100 - 250ms",
"0.5": "250 - 500ms"
}
}
}
],
"type": "piechart"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 8
},
"id": 4,
"options": {
"legend": {
"calcs": [
"lastNotNull",
"mean",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.5.5",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "rate(connexion_queue_message_delay_in_s_sum{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\"}[30s]) / rate(connexion_queue_message_delay_in_s_count{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\"}[30s])",
"hide": false,
"interval": "",
"legendFormat": "{{Channel}}",
"range": true,
"refId": "B"
}
],
"title": "Message Delay Running Average",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"1": "0.5 - 1s",
"5": "1 - 5s",
"10": "5 - 10s",
"30": "10 - 30s",
"60": "30 - 60s",
"300": "1 - 5m",
"1800": "5 - 30m",
"3600": "30 - 60m",
"+Inf": "> 60m",
"0.1": "0 - 100ms",
"0.25": "100 - 250ms",
"0.5": "250 - 500ms"
}
}
}
],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 16
},
"id": 5,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.5.5",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(rate(connexion_queue_message_delay_in_s_bucket{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\",le=\"10\"}[5m])) by (Channel) /\r\nsum(rate(connexion_queue_message_delay_in_s_count{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\"}[5m])) by (Channel)",
"hide": false,
"interval": "",
"legendFormat": "{{Channel}}",
"range": true,
"refId": "A"
}
],
"title": "% Messages Processed < 10s After Receipt",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"1": "0.5 - 1s",
"5": "1 - 5s",
"10": "5 - 10s",
"30": "10 - 30s",
"60": "30 - 60s",
"300": "1 - 5m",
"1800": "5 - 30m",
"3600": "30 - 60m",
"+Inf": "> 60m",
"0.1": "0 - 100ms",
"0.25": "100 - 250ms",
"0.5": "250 - 500ms"
}
}
}
],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 9,
"x": 0,
"y": 24
},
"id": 6,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"expr": "histogram_quantile(0.95, sum(rate(connexion_queue_message_delay_in_s_bucket{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\"}[5m])) by (le))",
"hide": false,
"refId": "B"
}
],
"title": "Message Delay (95% Confidence Interval)",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"1": "0.5 - 1s",
"5": "1 - 5s",
"10": "5 - 10s",
"30": "10 - 30s",
"60": "30 - 60s",
"300": "1 - 5m",
"1800": "5 - 30m",
"3600": "30 - 60m",
"+Inf": "> 60m",
"0.1": "0 - 100ms",
"0.25": "100 - 250ms",
"0.5": "250 - 500ms"
}
}
}
],
"type": "stat"
},
{
"cards": {},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateSpectral",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "",
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 15,
"x": 9,
"y": 24
},
"heatmap": {},
"hideZeroBuckets": true,
"highlightCards": true,
"id": 7,
"legend": {
"show": true
},
"options": {
"calculate": false,
"calculation": {},
"cellGap": 2,
"cellValues": {},
"color": {
"exponent": 0.5,
"fill": "#b4ff00",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "Spectral",
"steps": 128
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"showValue": "never",
"tooltip": {
"show": true,
"yHistogram": false
},
"yAxis": {
"axisPlacement": "left",
"decimals": 0,
"reverse": false,
"unit": "s"
}
},
"pluginVersion": "10.1.1",
"reverseYBuckets": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (le) (rate(connexion_queue_message_delay_in_s_bucket{instance=\"$instance\", Group=\"$group\", Tab=\"$tab\",Channel=\"$channel\"}[$__rate_interval]))",
"format": "heatmap",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{le}}",
"range": true,
"refId": "B"
}
],
"title": "Message Delay Distribution History",
"tooltip": {
"show": true,
"showHistogram": false
},
"transformations": [],
"type": "heatmap",
"xAxis": {
"show": true
},
"yAxis": {
"decimals": 0,
"format": "s",
"logBase": 1,
"show": true
},
"yBucketBound": "auto"
}
],
"refresh": "5s",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(instance)",
"hide": 0,
"includeAll": false,
"label": "Server",
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(connexion_channel_message_count{instance=\"$instance\"}, Group)",
"hide": 0,
"includeAll": false,
"label": "Group",
"multi": false,
"name": "group",
"options": [],
"query": {
"query": "label_values(connexion_channel_message_count{instance=\"$instance\"}, Group)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(connexion_channel_message_count{instance=\"$instance\", Group=\"$group\"}, Tab)",
"hide": 0,
"includeAll": false,
"label": "Tab",
"multi": false,
"name": "tab",
"options": [],
"query": {
"query": "label_values(connexion_channel_message_count{instance=\"$instance\", Group=\"$group\"}, Tab)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(connexion_channel_message_count{instance=\"$instance\", Tab=\"$tab\"}, Channel)",
"hide": 0,
"includeAll": false,
"label": "Channel",
"multi": false,
"name": "channel",
"options": [],
"query": {
"query": "label_values(connexion_channel_message_count{instance=\"$instance\", Tab=\"$tab\"}, Channel)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
}
]
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Message Delay",
"uid": "uIFfwGR4z",
"version": 2,
"weekStart": ""
}
, multiple selections available,