Ensure RabbitMQ-Stream dashboard works correctly after import

This breaks the docker-compose integration, but we need to move away
from it anyways, the whole dev flow needs revisiting after our focus on
K8s.

$__rate_interval does not work with irate, dropping it in favour of 60s,
same as all other dashboards.

This is a follow-up to https://github.com/rabbitmq/rabbitmq-server/pull/3250

Thanks @ansd for mentioning about the post-import issues.

It was uploaded as https://grafana.com/api/dashboards/14798/revisions/3/download

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
This commit is contained in:
Gerhard Lazu 2021-07-30 13:53:02 +01:00
parent ee6aa3067e
commit 65afbb931b
No known key found for this signature in database
GPG Key ID: A28DE70C9444D7A6
1 changed files with 32 additions and 32 deletions

View File

@ -4,7 +4,7 @@
"type": "grafana", "type": "grafana",
"id": "grafana", "id": "grafana",
"name": "Grafana", "name": "Grafana",
"version": "8.0.3" "version": "8.0.6"
}, },
{ {
"type": "panel", "type": "panel",
@ -52,14 +52,14 @@
}, },
"description": "Stream protocol message rates and errors", "description": "Stream protocol message rates and errors",
"editable": true, "editable": true,
"gnetId": null, "gnetId": 14798,
"graphTooltip": 1, "graphTooltip": 1,
"id": null, "id": null,
"iteration": 1627568060829, "iteration": 1627648233032,
"links": [], "links": [],
"panels": [ "panels": [
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -103,7 +103,7 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.0.3", "pluginVersion": "8.0.6",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
@ -117,7 +117,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -161,11 +161,11 @@
"text": {}, "text": {},
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.0.3", "pluginVersion": "8.0.6",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "sum by(rabbitmq_cluster) (irate(rabbitmq_global_messages_received_total{protocol=\"stream\"}[$__rate_interval]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"})", "expr": "sum by(rabbitmq_cluster) (irate(rabbitmq_global_messages_received_total{protocol=\"stream\"}[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"})",
"instant": false, "instant": false,
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
@ -176,7 +176,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -221,11 +221,11 @@
"text": {}, "text": {},
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.0.3", "pluginVersion": "8.0.6",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "sum by(rabbitmq_cluster) (irate(rabbitmq_global_messages_confirmed_total{protocol=\"stream\"}[$__rate_interval]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"})", "expr": "sum by(rabbitmq_cluster) (irate(rabbitmq_global_messages_confirmed_total{protocol=\"stream\"}[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"})",
"instant": false, "instant": false,
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
@ -236,7 +236,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -280,7 +280,7 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.0.3", "pluginVersion": "8.0.6",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
@ -294,7 +294,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -338,7 +338,7 @@
"text": {}, "text": {},
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.0.3", "pluginVersion": "8.0.6",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
@ -353,7 +353,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -398,7 +398,7 @@
"text": {}, "text": {},
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.0.3", "pluginVersion": "8.0.6",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
@ -414,7 +414,7 @@
}, },
{ {
"cacheTimeout": null, "cacheTimeout": null,
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -632,7 +632,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -833,7 +833,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "sort_desc(sum by(rabbitmq_node) (irate(rabbitmq_global_messages_received_total{protocol=\"stream\"}[$__rate_interval]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}))", "expr": "sort_desc(sum by(rabbitmq_cluster) (irate(rabbitmq_global_messages_received_total{protocol=\"stream\"}[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}))",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"interval": "", "interval": "",
@ -844,7 +844,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1046,7 +1046,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "sort_desc(sum by(rabbitmq_node) (irate(rabbitmq_global_messages_confirmed_total{protocol=\"stream\"}[$__rate_interval]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}))", "expr": "sort_desc(sum by(rabbitmq_cluster) (irate(rabbitmq_global_messages_confirmed_total{protocol=\"stream\"}[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}))",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"interval": "", "interval": "",
@ -1057,7 +1057,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1269,7 +1269,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1470,7 +1470,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "sort_desc(sum by(rabbitmq_node) (irate(rabbitmq_global_messages_delivered_total{protocol=\"stream\"}[$__rate_interval]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}))", "expr": "sort_desc(sum by(rabbitmq_cluster) (irate(rabbitmq_global_messages_delivered_total{protocol=\"stream\"}[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}))",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"interval": "", "interval": "",
@ -1481,7 +1481,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 4, "w": 4,
@ -1493,7 +1493,7 @@
"content": "&nbsp; [What are Streams?](https://www.rabbitmq.com/streams.html)\n\n&nbsp; [Streams Overview + slides](https://blog.rabbitmq.com/posts/2021/07/rabbitmq-streams-overview/)\n\n&nbsp; [First Application + video](https://blog.rabbitmq.com/posts/2021/07/rabbitmq-streams-first-application/)\n\n&nbsp; [Using Stream protocol + diagrams](https://blog.rabbitmq.com/posts/2021/07/connecting-to-streams/)", "content": "&nbsp; [What are Streams?](https://www.rabbitmq.com/streams.html)\n\n&nbsp; [Streams Overview + slides](https://blog.rabbitmq.com/posts/2021/07/rabbitmq-streams-overview/)\n\n&nbsp; [First Application + video](https://blog.rabbitmq.com/posts/2021/07/rabbitmq-streams-first-application/)\n\n&nbsp; [Using Stream protocol + diagrams](https://blog.rabbitmq.com/posts/2021/07/connecting-to-streams/)",
"mode": "markdown" "mode": "markdown"
}, },
"pluginVersion": "8.0.3", "pluginVersion": "8.0.6",
"title": "Learn more", "title": "Learn more",
"transparent": true, "transparent": true,
"type": "text" "type": "text"
@ -2692,7 +2692,7 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -2915,7 +2915,7 @@
{ {
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"definition": "label_values(rabbitmq_identity_info, namespace)", "definition": "label_values(rabbitmq_identity_info, namespace)",
"description": null, "description": null,
"error": null, "error": null,
@ -2941,7 +2941,7 @@
{ {
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": null, "datasource": "${DS_PROMETHEUS}",
"definition": "label_values(rabbitmq_identity_info{namespace=\"$namespace\"}, rabbitmq_cluster)", "definition": "label_values(rabbitmq_identity_info{namespace=\"$namespace\"}, rabbitmq_cluster)",
"description": null, "description": null,
"error": null, "error": null,
@ -2981,6 +2981,6 @@
}, },
"timezone": "", "timezone": "",
"title": "RabbitMQ-Stream", "title": "RabbitMQ-Stream",
"uid": "4aWNt73Mk", "uid": "j7MCpqZ7k",
"version": 20210729 "version": 20210730
} }