apiVersion: v1
kind: ConfigMap
metadata:
  name: erlang-distribution-grafana-dashboard
  labels:
    grafana_dashboard: "true"
data:
  erlang-distribution-grafana-dashboard.json: |-
    {
      "__requires": [
        {
          "type": "grafana",
          "id": "grafana",
          "name": "Grafana",
          "version": "6.0.0"
        },
        {
          "type": "datasource",
          "id": "prometheus",
          "name": "prometheus",
          "version": "1.0.0"
        },
        {
          "type": "panel",
          "id": "graph",
          "name": "Graph",
          "version": ""
        },
        {
          "type": "panel",
          "id": "singlestat",
          "name": "Singlestat",
          "version": ""
        },
        {
          "type": "panel",
          "id": "heatmap",
          "name": "Heatmap",
          "version": ""
        },
        {
          "type": "panel",
          "id": "flant-statusmap-panel",
          "name": "Statusmap",
          "version": "0.1.1"
        }
      ],
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": "-- Grafana --",
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "description": "Erlang Distribution links, inet socket, port driver, dist process + tls_connection & tls_sender",
      "editable": true,
      "gnetId": 11352,
      "graphTooltip": 1,
      "iteration": 1570119158161,
      "links": [],
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "#C4162A",
            "#1F60C4",
            "#37872D"
          ],
          "datasource": "Prometheus",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 25,
          "interval": "",
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "options": {},
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(255, 255, 255, 0)",
            "full": false,
            "lineColor": "rgb(255, 255, 255)",
            "show": true
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "count(erlang_vm_dist_node_state * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) OR vector(0)",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "2,6",
          "timeFrom": null,
          "timeShift": null,
          "title": "All distribution links",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "#C4162A",
            "#1F60C4",
            "#37872D"
          ],
          "datasource": "Prometheus",
          "description": "When a connection between a node and peer is established, the distribution link is considered to be `up`",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 3,
            "w": 6,
            "x": 6,
            "y": 0
          },
          "id": 27,
          "interval": "",
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "options": {},
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(255, 255, 255, 0)",
            "full": false,
            "lineColor": "rgb(255, 255, 255)",
            "show": true
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "count(erlang_vm_dist_node_state * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"} == 3) OR vector(0)",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "2,6",
          "timeFrom": null,
          "timeShift": null,
          "title": "Established distribution links",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "#37872D",
            "#1F60C4",
            "#C4162A"
          ],
          "datasource": "Prometheus",
          "description": "When a new connection is exchanging information between the node and the peer the distribution link is considered to be `pending`",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 3,
            "w": 6,
            "x": 12,
            "y": 0
          },
          "id": 26,
          "interval": "",
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "options": {},
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(255, 255, 255, 0)",
            "full": false,
            "lineColor": "rgb(255, 255, 255)",
            "show": true
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "count(erlang_vm_dist_node_state * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"} == 1) OR vector(0)",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "1,6",
          "timeFrom": null,
          "timeShift": null,
          "title": "Connecting distribution links",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "#37872D",
            "#1F60C4",
            "#C4162A"
          ],
          "datasource": "Prometheus",
          "description": "When a new connection is established and there is an existing connection between the node and the peer, this connection needs to wait for the initial connection to go down before it can become active. The distribution link is considered `up_pending`",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 3,
            "w": 6,
            "x": 18,
            "y": 0
          },
          "id": 28,
          "interval": "",
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "options": {},
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(255, 255, 255, 0)",
            "full": false,
            "lineColor": "rgb(255, 255, 255)",
            "show": true
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "count(erlang_vm_dist_node_state * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"} == 2) OR vector(0)",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "1,6",
          "timeFrom": null,
          "timeShift": null,
          "title": "Waiting distribution links",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "collapsed": false,
          "datasource": "Prometheus",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 3
          },
          "id": 74,
          "panels": [],
          "title": "distribution links",
          "type": "row"
        },
        {
          "cards": {
            "cardHSpacing": 2,
            "cardMinWidth": 5,
            "cardRound": null,
            "cardVSpacing": 2
          },
          "color": {
            "cardColor": "#b4ff00",
            "colorScale": "sqrt",
            "colorScheme": "interpolateGreens",
            "defaultColor": "#757575",
            "exponent": 0.5,
            "min": null,
            "mode": "discrete",
            "thresholds": [
              {
                "color": "#37872D",
                "tooltip": "established",
                "value": "3"
              },
              {
                "color": "#FA6400",
                "tooltip": "connecting",
                "value": "1"
              },
              {
                "color": "#FADE2A",
                "tooltip": "waiting",
                "value": "2"
              }
            ]
          },
          "data": {
            "decimals": null,
            "unitFormat": "short"
          },
          "datasource": "Prometheus",
          "description": "",
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 0,
            "y": 4
          },
          "highlightCards": true,
          "id": 19,
          "legend": {
            "show": true
          },
          "links": [],
          "nullPointMode": "as empty",
          "options": {},
          "targets": [
            {
              "aggregation": "Last",
              "decimals": 2,
              "displayAliasType": "Warning / Critical",
              "displayType": "Regular",
              "displayValueWithAlias": "Never",
              "expr": "erlang_vm_dist_node_state * on(instance) group_left(rabbitmq_node, rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A",
              "units": "none",
              "valueHandler": "Number Threshold"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "State of distribution links",
          "tooltip": {
            "show": true
          },
          "type": "flant-statusmap-panel",
          "useMax": true,
          "xAxis": {
            "labelFormat": "%a %m/%d",
            "minBucketWidthToShowWeekends": 4,
            "show": true,
            "showCrosshair": true,
            "showWeekends": true
          },
          "yAxis": {
            "show": true,
            "showCrosshair": false
          },
          "yAxisSort": "metrics"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "Data currently buffered in the output queue of the distribution link\n\nAny values above the 64MB threshold hint to an overloaded distribution\n\nBy default, RabbitMQ sets an upper limit of 128MB for the distribution buffer\n\n* [erlang/otp#2270](https://github.com/erlang/otp/pull/2270)\n* [erl +zdbbl](http://erlang.org/doc/man/erl.html#+zdbbl)\n",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 12,
            "y": 4
          },
          "id": 62,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "erlang_vm_dist_node_queue_size * on(instance) group_left(rabbitmq_node, rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": true,
              "line": true,
              "op": "gt",
              "value": 65536000,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Data buffered in the distribution links queue",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "collapsed": false,
          "datasource": "Prometheus",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 9
          },
          "id": 9,
          "panels": [],
          "title": "inet socket",
          "type": "row"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 0,
            "y": 10
          },
          "id": 3,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "rate(erlang_vm_dist_send_bytes[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Data sent to peer node / s",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 1,
              "format": "Bps",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 12,
            "y": 10
          },
          "id": 2,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "rate(erlang_vm_dist_recv_bytes[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} <- {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Data received from peer node / s",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 1,
              "format": "Bps",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "Number of inet packets sent to the distribution link port.\n\nIf too few messages are sent and data sits in the port driver buffer, increasing the `inet_dist_connect_options` as well as `inet_dist_listen_options` buffer values will result in more stable throughput.",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 0,
            "y": 15
          },
          "id": 4,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "rate(erlang_vm_dist_send_cnt[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Distribution messages sent to peer node / s",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "Number of inet packets received from the distribution link port.\n\nIf too many messages are received, increasing the `inet_dist_connect_options` as well as `inet_dist_listen_options` buffer values will result in more stable throughput.",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 12,
            "y": 15
          },
          "id": 5,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "rate(erlang_vm_dist_recv_cnt[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} <- {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Distribution messages received from peer node / s",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "Corresponds to the average size of the argument passed to `gen_tcp:send/2` or equivalent.\n\nTypically corresponds to TCP window size.\n\nIf TLS is used for inter-node communication, the `inet` packet size will be varied so that the system as a whole is both secure and performant.\n\n`inet` packets larger than the TCP window will be split into TCP packets by the system kernel.\n\n`inet` packets smaller than the TCP window _may_ be joined into TCP packets by the system kernel.\n\n* [`inet` packet](http://erlang.org/doc/man/inet.html#packet)",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 0,
            "y": 20
          },
          "id": 39,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "(rate(erlang_vm_dist_send_bytes[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) / \n(rate(erlang_vm_dist_send_cnt[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Average inet packet size sent to peer node",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "Corresponds to the average size of the argument received from `gen_tcp:recv/2` or equivalent.\n\nTypically corresponds to TCP window size.\n\nIf TLS is used for inter-node communication, the `inet` packet size will be varied so that the system as a whole is both secure and performant.\n\n* [`inet` packet](http://erlang.org/doc/man/inet.html#packet)",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 12,
            "y": 20
          },
          "id": 50,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "(rate(erlang_vm_dist_recv_bytes[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) / \n(rate(erlang_vm_dist_recv_cnt[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} <- {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Average inet packet size received from peer node",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "Bps",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "collapsed": false,
          "datasource": "Prometheus",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 25
          },
          "id": 11,
          "panels": [],
          "title": "port driver",
          "type": "row"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "The total number of bytes allocated for this port by the runtime system. The port itself can have allocated memory that is not included.",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 0,
            "y": 26
          },
          "id": 12,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "erlang_vm_dist_port_memory_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Memory used by the port driver",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "The total number of bytes queued by the port using the ERTS driver queue implementation\n\nAny values above a few KBs hint to an overloaded distribution",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 12,
            "y": 26
          },
          "id": 7,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/rabbit/",
              "color": "#C4162A"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "erlang_vm_dist_port_queue_size_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": true,
              "line": true,
              "op": "gt",
              "value": 0,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Data in the port driver buffer",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "collapsed": false,
          "datasource": "Prometheus",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 31
          },
          "id": 14,
          "panels": [],
          "repeat": "erlang_vm_dist_proc_type",
          "scopedVars": {
            "erlang_vm_dist_proc_type": {
              "selected": false,
              "text": "dist",
              "value": "dist"
            }
          },
          "title": "$erlang_vm_dist_proc_type process",
          "type": "row"
        },
        {
          "cacheTimeout": null,
          "cards": {
            "cardHSpacing": 2,
            "cardMinWidth": 5,
            "cardRound": null,
            "cardVSpacing": 2
          },
          "color": {
            "cardColor": "#b4ff00",
            "colorScale": "sqrt",
            "colorScheme": "interpolateGnYlRd",
            "defaultColor": "#757575",
            "exponent": 0.5,
            "mode": "discrete",
            "thresholds": [
              {
                "color": "#37872D",
                "tooltip": "waiting",
                "value": "6"
              },
              {
                "color": "#96D98D",
                "tooltip": "running",
                "value": "5"
              },
              {
                "color": "#1F60C4",
                "tooltip": "garbage_collecting",
                "value": "4"
              },
              {
                "color": "#FADE2A",
                "tooltip": "runnable",
                "value": "3"
              },
              {
                "color": "#FA6400",
                "tooltip": "suspended",
                "value": "2"
              },
              {
                "color": "#C4162A",
                "tooltip": "exiting",
                "value": "1"
              }
            ]
          },
          "data": {
            "decimals": null,
            "unitFormat": "short"
          },
          "datasource": "Prometheus",
          "description": "",
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 0,
            "y": 32
          },
          "highlightCards": true,
          "id": 18,
          "legend": {
            "show": true
          },
          "links": [],
          "nullPointMode": "as empty",
          "options": {},
          "scopedVars": {
            "erlang_vm_dist_proc_type": {
              "selected": false,
              "text": "dist",
              "value": "dist"
            }
          },
          "targets": [
            {
              "aggregation": "Last",
              "decimals": 2,
              "displayAliasType": "Warning / Critical",
              "displayType": "Regular",
              "displayValueWithAlias": "Never",
              "expr": "erlang_vm_dist_proc_status{type=\"$erlang_vm_dist_proc_type\"} * on(instance) group_left(rabbitmq_node, rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"} ",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A",
              "units": "none",
              "valueHandler": "Number Threshold"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Process state",
          "tooltip": {
            "show": true
          },
          "type": "flant-statusmap-panel",
          "useMax": true,
          "xAxis": {
            "labelFormat": "%a %m/%d",
            "minBucketWidthToShowWeekends": 4,
            "show": true,
            "showCrosshair": true,
            "showWeekends": true
          },
          "yAxis": {
            "show": true,
            "showCrosshair": false
          },
          "yAxisSort": "metrics"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "The number of messages currently in the message queue of the process\n\nAny values above 0 hint to an overloaded distribution",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 12,
            "y": 32
          },
          "id": 16,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "scopedVars": {
            "erlang_vm_dist_proc_type": {
              "selected": false,
              "text": "dist",
              "value": "dist"
            }
          },
          "seriesOverrides": [
            {
              "alias": "/rabbit/",
              "color": "#C4162A"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "erlang_vm_dist_proc_message_queue_len{type=\"$erlang_vm_dist_proc_type\"} * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": true,
              "line": true,
              "op": "gt",
              "value": 0,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Messages in the process queue",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "The size in bytes of process memory. This includes call stack, heap, and internal structures.",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 0,
            "y": 37
          },
          "id": 15,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "scopedVars": {
            "erlang_vm_dist_proc_type": {
              "selected": false,
              "text": "dist",
              "value": "dist"
            }
          },
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "erlang_vm_dist_proc_memory_bytes{type=\"$erlang_vm_dist_proc_type\"} * on(instance) group_left(rabbitmq_node, rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Memory used by the process",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "description": "The number of reductions executed by the process",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 12,
            "x": 12,
            "y": 37
          },
          "id": 17,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "show": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "scopedVars": {
            "erlang_vm_dist_proc_type": {
              "selected": false,
              "text": "dist",
              "value": "dist"
            }
          },
          "seriesOverrides": [
            {
              "alias": "/^rabbit@[\\w.-]+0/",
              "color": "#56A64B"
            },
            {
              "alias": "/^rabbit@[\\w.-]+1/",
              "color": "#F2CC0C"
            },
            {
              "alias": "/^rabbit@[\\w.-]+2/",
              "color": "#3274D9"
            },
            {
              "alias": "/^rabbit@[\\w.-]+3/",
              "color": "#A352CC"
            },
            {
              "alias": "/^rabbit@[\\w.-]+4/",
              "color": "#FF780A"
            },
            {
              "alias": "/^rabbit@[\\w.-]+5/",
              "color": "#96D98D"
            },
            {
              "alias": "/^rabbit@[\\w.-]+6/",
              "color": "#FFEE52"
            },
            {
              "alias": "/^rabbit@[\\w.-]+7/",
              "color": "#8AB8FF"
            },
            {
              "alias": "/^rabbit@[\\w.-]+8/",
              "color": "#CA95E5"
            },
            {
              "alias": "/^rabbit@[\\w.-]+9/",
              "color": "#FFB357"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "rate(erlang_vm_dist_proc_reductions{type=\"$erlang_vm_dist_proc_type\"}[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{rabbitmq_node}} -> {{peer}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Process reductions / s",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "refresh": "15s",
      "schemaVersion": 20,
      "style": "dark",
      "tags": [
        "rabbitmq-prometheus"
      ],
      "templating": {
        "list": [
          {
            "allValue": null,
            "current": {
              "text": "rabbitmq-qq",
              "value": "rabbitmq-qq"
            },
            "datasource": "Prometheus",
            "definition": "label_values(rabbitmq_identity_info, rabbitmq_cluster)",
            "hide": 0,
            "includeAll": false,
            "label": "RabbitMQ Cluster",
            "multi": false,
            "name": "rabbitmq_cluster",
            "options": [],
            "query": "label_values(rabbitmq_identity_info, rabbitmq_cluster)",
            "refresh": 2,
            "regex": "",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "allValue": null,
            "current": {
              "text": "All",
              "value": [
                "$__all"
              ]
            },
            "datasource": "Prometheus",
            "definition": "label_values(erlang_vm_dist_proc_status, type)",
            "hide": 0,
            "includeAll": true,
            "label": "Process type",
            "multi": true,
            "name": "erlang_vm_dist_proc_type",
            "options": [],
            "query": "label_values(erlang_vm_dist_proc_status, type)",
            "refresh": 2,
            "regex": "",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          }
        ]
      },
      "time": {
        "from": "now-15m",
        "to": "now"
      },
      "timepicker": {
        "refresh_intervals": [
          "15s",
          "30s",
          "1m",
          "5m",
          "10m"
        ],
        "time_options": [
          "5m",
          "15m",
          "1h",
          "6h",
          "12h",
          "24h",
          "2d",
          "7d",
          "30d"
        ]
      },
      "timezone": "",
      "title": "Erlang-Distribution",
      "uid": "d-SFCCmZz",
      "version": 1,
      "__inputs": [
        {
          "name": "DS_PROMETHEUS",
          "label": "prometheus",
          "description": "",
          "type": "datasource",
          "pluginId": "prometheus",
          "pluginName": "Prometheus"
        }
      ]
    }
