Commit 6b7d7cba authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Merge branch 'dev' into 'master'

Pone al día los dashboards

See merge request redmic-project/metric/grafana!7
parents 32b0eb6a 62bbf334
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
# Grafana

Metrics visualization

## Provide dashboards

You can provide dashboard definitions at startup, mounted at `${DASHBOARDS_PATH}/` using configs or binding a volume.

## Update dashboards manually

When updating a dashboard via JSON Model (copy & paste), you have to pay attention to:

* Make sure `id` field has same value as previous version.
* Make sure `uid` field has same value as previous version.
* Set `version` field to current version number of the dashboard you are updating (Grafana will add +1 automatically).

These values will be different tipically when updating from `dev` to `pro` environment, for example.
+245 −243
Original line number Diff line number Diff line
@@ -3,41 +3,70 @@
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "datasource": {
          "type": "datasource",
          "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"
      }
    ]
  },
  "description": "Docker monitoring with Prometheus and cAdvisor",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 193,
  "graphTooltip": 1,
  "id": 7,
  "id": 9,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
      "datasource": "Prometheus",
      "editable": true,
      "error": false,
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
@@ -45,45 +74,30 @@
        "x": 0,
        "y": 0
      },
      "height": "20",
      "id": 7,
      "interval": null,
      "isNew": true,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      "options": {
        "colorMode": "none",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
          "fields": "",
          "values": false
        },
      "tableColumn": "",
        "textMode": "auto"
      },
      "pluginVersion": "9.1.6",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "count(container_last_seen{image!=\"\"})",
          "intervalFactor": 2,
          "legendFormat": "",
@@ -92,39 +106,47 @@
          "step": 240
        }
      ],
      "thresholds": "",
      "title": "Running containers",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
      "type": "stat"
    },
    {
          "op": "=",
          "text": "N/A",
          "value": "null"
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
      "valueName": "avg"
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      ],
      "datasource": "Prometheus",
      "editable": true,
      "error": false,
      "format": "mbytes",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "mbytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
@@ -132,45 +154,30 @@
        "x": 8,
        "y": 0
      },
      "height": "20",
      "id": 5,
      "interval": null,
      "isNew": true,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      "options": {
        "colorMode": "none",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "tableColumn": "",
      "pluginVersion": "9.1.6",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "sum(container_memory_usage_bytes{image!=\"\"})/1024/1024",
          "intervalFactor": 2,
          "legendFormat": "",
@@ -179,39 +186,47 @@
          "step": 240
        }
      ],
      "thresholds": "",
      "title": "Total Memory Usage",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
          "op": "=",
          "text": "N/A",
          "value": "null"
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
      "valueName": "current"
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      ],
      "datasource": "Prometheus",
      "editable": true,
      "error": false,
      "format": "percent",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
@@ -219,45 +234,30 @@
        "x": 16,
        "y": 0
      },
      "height": "20",
      "id": 6,
      "interval": null,
      "isNew": true,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      "options": {
        "colorMode": "none",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "tableColumn": "",
      "pluginVersion": "9.1.6",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "sum(rate(container_cpu_user_seconds_total{image!=\"\"}[5m]) * 100)",
          "intervalFactor": 2,
          "legendFormat": "",
@@ -266,30 +266,24 @@
          "step": 240
        }
      ],
      "thresholds": "",
      "title": "Total CPU Usage",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
      "type": "stat"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "decimals": 2,
      "editable": true,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 7,
@@ -297,6 +291,7 @@
        "x": 0,
        "y": 3
      },
      "hiddenSeries": false,
      "id": 2,
      "isNew": true,
      "legend": {
@@ -316,7 +311,11 @@
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -326,6 +325,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "rate(container_cpu_user_seconds_total{image!=\"\"}[5m]) * 100",
          "intervalFactor": 2,
          "legendFormat": "{{name}}",
@@ -335,8 +338,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "CPU Usage",
      "tooltip": {
        "msResolution": false,
@@ -344,36 +346,26 @@
        "sort": 0,
        "value_type": "cumulative"
      },
      "transparent": false,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
        "align": false
      }
    },
    {
@@ -381,11 +373,15 @@
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "decimals": 2,
      "editable": true,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 7,
@@ -393,6 +389,7 @@
        "x": 0,
        "y": 10
      },
      "hiddenSeries": false,
      "id": 1,
      "isNew": true,
      "legend": {
@@ -410,7 +407,11 @@
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -420,6 +421,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "container_memory_usage_bytes{image!=\"\"}",
          "hide": false,
          "intervalFactor": 2,
@@ -430,8 +435,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Memory Usage",
      "tooltip": {
        "msResolution": false,
@@ -439,12 +443,9 @@
        "sort": 0,
        "value_type": "cumulative"
      },
      "transparent": false,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
@@ -453,22 +454,16 @@
          "format": "bytes",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
        "align": false
      }
    },
    {
@@ -476,10 +471,14 @@
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "editable": true,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 7,
@@ -487,6 +486,7 @@
        "x": 0,
        "y": 17
      },
      "hiddenSeries": false,
      "id": 3,
      "isNew": true,
      "legend": {
@@ -502,7 +502,11 @@
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -512,6 +516,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "irate(container_network_receive_bytes_total{image!=\"\"}[5m])",
          "intervalFactor": 2,
          "legendFormat": "{{name}}",
@@ -521,8 +529,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Network Rx",
      "tooltip": {
        "msResolution": false,
@@ -532,33 +539,24 @@
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
        "align": false
      }
    },
    {
@@ -566,10 +564,14 @@
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "editable": true,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 7,
@@ -577,6 +579,7 @@
        "x": 12,
        "y": 17
      },
      "hiddenSeries": false,
      "id": 4,
      "isNew": true,
      "legend": {
@@ -592,7 +595,11 @@
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -602,6 +609,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "irate(container_network_transmit_bytes_total{image!=\"\"}[5m])",
          "intervalFactor": 2,
          "legendFormat": "{{name}}",
@@ -610,8 +621,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Network Tx",
      "tooltip": {
        "msResolution": false,
@@ -621,38 +631,29 @@
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
        "align": false
      }
    }
  ],
  "refresh": "10s",
  "schemaVersion": 16,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [
    "docker"
@@ -692,5 +693,6 @@
  "timezone": "browser",
  "title": "Docker monitoring",
  "uid": "PIdFUluik",
  "version": 1
  "version": 2,
  "weekStart": ""
}
+1815 −1611

File changed and moved.

Preview size limit exceeded, changes collapsed.

+959 −1302

File changed and moved.

Preview size limit exceeded, changes collapsed.

+134 −85
Original line number Diff line number Diff line
@@ -3,36 +3,51 @@
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "datasource": {
          "type": "datasource",
          "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"
      }
    ]
  },
  "description": "Kafka resource usage and throughput",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 7589,
  "graphTooltip": 0,
  "id": 11,
  "iteration": 1572511482664,
  "id": 6,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 10,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 14,
      "legend": {
        "alignAsTable": true,
@@ -52,7 +67,11 @@
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -62,6 +81,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "sum(rate(kafka_topic_partition_current_offset{instance=\"$instance\", topic=~\"$topic\"}[1m])) by (topic)",
          "format": "time_series",
          "intervalFactor": 1,
@@ -70,8 +93,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Message in per second",
      "tooltip": {
        "shared": true,
@@ -80,33 +102,25 @@
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "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
        "align": false
      }
    },
    {
@@ -114,14 +128,19 @@
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 10,
        "x": 10,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 12,
      "legend": {
        "alignAsTable": true,
@@ -140,7 +159,11 @@
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -150,6 +173,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "sum(kafka_consumergroup_lag{instance=\"$instance\",topic=~\"$topic\"}) by (consumergroup, topic) ",
          "format": "time_series",
          "instant": false,
@@ -160,8 +187,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Lag by  Consumer Group",
      "tooltip": {
        "shared": true,
@@ -170,9 +196,7 @@
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
@@ -181,22 +205,17 @@
          "format": "short",
          "label": "",
          "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
        "align": false
      }
    },
    {
@@ -204,14 +223,19 @@
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 10,
        "x": 0,
        "y": 10
      },
      "hiddenSeries": false,
      "id": 16,
      "legend": {
        "alignAsTable": true,
@@ -229,7 +253,11 @@
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -239,6 +267,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "sum(delta(kafka_topic_partition_current_offset{instance=~'$instance', topic=~\"$topic\"}[5m])/5) by (topic)",
          "format": "time_series",
          "intervalFactor": 1,
@@ -247,44 +279,33 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Message in per minute",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": false,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
        "align": false
      }
    },
    {
@@ -292,14 +313,19 @@
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 10,
        "x": 10,
        "y": 10
      },
      "hiddenSeries": false,
      "id": 18,
      "legend": {
        "alignAsTable": true,
@@ -319,7 +345,11 @@
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -329,6 +359,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "sum(delta(kafka_consumergroup_current_offset{instance=~'$instance',topic=~\"$topic\"}[5m])/5) by (consumergroup, topic)",
          "format": "time_series",
          "intervalFactor": 1,
@@ -337,8 +371,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Message consume per minute",
      "tooltip": {
        "shared": true,
@@ -347,33 +380,24 @@
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
        "align": false
      }
    },
    {
@@ -381,14 +405,19 @@
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "datasource": {
        "type": "prometheus",
        "uid": "PBFA97CFB590B2093"
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 20,
        "x": 0,
        "y": 20
      },
      "hiddenSeries": false,
      "id": 8,
      "legend": {
        "alignAsTable": true,
@@ -406,7 +435,11 @@
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "9.1.6",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
@@ -416,6 +449,10 @@
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "PBFA97CFB590B2093"
          },
          "expr": "sum by(topic) (kafka_topic_partitions{instance=\"$instance\",topic=~\"$topic\"})",
          "format": "time_series",
          "intervalFactor": 1,
@@ -424,8 +461,7 @@
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "timeRegions": [],
      "title": "Partitions per Topic",
      "tooltip": {
        "shared": false,
@@ -434,9 +470,7 @@
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "series",
        "name": null,
        "show": false,
        "values": [
          "current"
@@ -445,29 +479,22 @@
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
        "align": false
      }
    }
  ],
  "refresh": "1m",
  "schemaVersion": 16,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [
    "Kafka"
@@ -475,74 +502,95 @@
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "kafka-exporter",
          "value": "kafka-exporter"
        },
        "datasource": "Prometheus",
        "datasource": {
          "type": "prometheus",
          "uid": "PBFA97CFB590B2093"
        },
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": "Job",
        "multi": false,
        "name": "job",
        "options": [],
        "query": {
          "query": "label_values(kafka_consumergroup_current_offset, job)",
          "refId": "Prometheus-job-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "text": "10.0.8.24:9308",
          "value": "10.0.8.24:9308"
          "selected": true,
          "text": "10.0.3.3:9308",
          "value": "10.0.3.3:9308"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "PBFA97CFB590B2093"
        },
        "datasource": "Prometheus",
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": "Instance",
        "multi": false,
        "name": "instance",
        "options": [],
        "query": {
          "query": "label_values(kafka_consumergroup_current_offset{job=~\"$job\"}, instance)",
          "refId": "Prometheus-instance-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "text": "All",
          "value": "$__all"
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": "Prometheus",
        "datasource": {
          "type": "prometheus",
          "uid": "PBFA97CFB590B2093"
        },
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": "Topic",
        "multi": true,
        "name": "topic",
        "options": [],
        "query": {
          "query": "label_values(kafka_topic_partition_current_offset{instance='$instance',topic!='__consumer_offsets',topic!='--kafka'}, topic)",
          "refId": "Prometheus-topic-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "topic",
        "type": "query",
        "useTags": false
      }
@@ -580,5 +628,6 @@
  "timezone": "browser",
  "title": "Kafka Exporter Overview",
  "uid": "jwPKIsniz",
  "version": 3
  "version": 2,
  "weekStart": ""
}
Loading