Grafana dashboard: Hydrolix - Kafka Ingest
Description: Monitoring your Kafka ingest into your Hydrolix Cluster

Monitoring Hydrolix ingest Kafka streaming health
The following dashboards are used for establishing the health of each component used in Kafka streaming ingest looking at Kafka-Peer health and also monitoring Kafka performances lags and event count sent to the indexer.


{
  "__inputs": [
    {
      "name": "DS_GCP_- PROD TEST PROM",
      "label": "GCP - Prod Test Prom",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    },
    {
      "name": "DS_GCP_- PROD TEST",
      "label": "GCP - Prod Test",
      "description": "",
      "type": "datasource",
      "pluginId": "grafana-clickhouse-datasource",
      "pluginName": "ClickHouse"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.2.1"
    },
    {
      "type": "datasource",
      "id": "grafana-clickhouse-datasource",
      "name": "ClickHouse",
      "version": "2.0.1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph (old)",
      "version": ""
    },
    {
      "type": "panel",
      "id": "logs",
      "name": "Logs",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "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": "Monitoring your Kafka ingest into your Hydrolix Cluster",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 14444,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "tFkwxOy7z"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 32,
      "panels": [],
      "title": "Summary",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "",
      "gridPos": {
        "h": 8,
        "w": 7,
        "x": 0,
        "y": 1
      },
      "id": 7,
      "options": {
        "code": {
          "language": "plaintext",
          "showLineNumbers": false,
          "showMiniMap": false
        },
        "content": "# Kafka Monitoring\nHydrolix Kafka Peers connect to the customers Kafka Infrastructure.\n\nKafka-Peer is counting rows, bytes and values recieved from the source Kafka.\n\nThe Kafka-Peer generates a segment and sends to the indexer.\n\nSummary:\n\nCustomer Kafka -> Kafka-Peer (HDX) -> Indexer -> S3/Catalog\n",
        "mode": "markdown"
      },
      "pluginVersion": "9.2.1",
      "title": "Description",
      "type": "text"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Kafka Infrastructure Components affecting Kafka Streaming Ingest",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 1
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 2,
        "x": 7,
        "y": 1
      },
      "id": 49,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "value"
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "expr": "sum(up{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", port_name=\"indexer\" })",
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Kafka Peers",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rate of source Bytes/s received by Kafka-Peers",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 9,
        "y": 1
      },
      "id": 22,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(kafka_source_byte_count{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Bytes/s Received",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rate of source Bytes/s received by Kafka-Peers",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 12,
        "y": 1
      },
      "id": 29,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(kafka_source_row_count{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Rows/s Received",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rate of source Values ( value = columns * rows ) received a second by  Kafka-Peers",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 15,
        "y": 1
      },
      "id": 24,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(kafka_source_value_count{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Values/s Received",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rate of Kafka Read Errors a second experienced by the Kafka-Peers",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 10
              },
              {
                "color": "red",
                "value": 20
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 18,
        "y": 1
      },
      "id": 56,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(kafka_source_read_error_count{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Read Error Count",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Peak bytes a second received by Hydrolix Kafka",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#422d88",
                "value": null
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 21,
        "y": 1
      },
      "id": 51,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "max"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "value"
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(kafka_source_byte_count{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
          "interval": "",
          "legendFormat": "",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Peak Bytes/s",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rate of source Bytes/s received by Kafka-Peers",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 9,
        "y": 5
      },
      "id": 34,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(indexer_bytes_written_sum{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Bytes/s Indexed",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rate of indexed rows/s received by Kafka-Peers",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 12,
        "y": 5
      },
      "id": 35,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(indexer_rows_written_sum{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Rows/s Indexed",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Lag delta between the last produced message and the last consumers  committed offset.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "yellow",
                "value": 25
              },
              {
                "color": "red",
                "value": 50
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 15,
        "y": 5
      },
      "id": 23,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(kafka_source_lag{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Source Lag",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rate of Errors being seen at the Indexer where data is written to storage.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 10
              },
              {
                "color": "red",
                "value": 20
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 18,
        "y": 5
      },
      "id": 55,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(indexer_partitions_rejected_count{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project.*\", table_name=~\"^$table.*\", transform_name=~\"^$transform.*\"}[$__rate_interval]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Kafka Indexer Error Count",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Peak Rows Received a Second",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#422d88",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 21,
        "y": 5
      },
      "id": 53,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "max"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": true,
          "expr": "sum(rate(kafka_source_row_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
          "interval": "",
          "legendFormat": "",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Peak Row/s",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GCP_- PROD TEST PROM}"
      },
      "description": "Rows Received by Source",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 24,
        "x": 0,
        "y": 9
      },
      "id": 62,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.2.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sum by (project_name,table_name,transform_name) (rate(indexer_rows_written_sum{app=~\"^$source.*\", instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\", port_name=\"indexer\"}[$__rate_interval]))",
          "instant": false,
          "legendFormat": "{{project_name}}.{{table_name}} {{transform_name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Source (Transform)",
      "type": "stat"
    },
    {
      "collapsed": true,
      "datasource": {
        "type": "prometheus",
        "uid": "RZvikJ8nk"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 14
      },
      "id": 5,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Rate of Bytes received and written a second by Kafka",
          "fieldConfig": {
            "defaults": {
              "unit": "bytes"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 15
          },
          "hiddenSeries": false,
          "id": 15,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "sum (rate(kafka_source_byte_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "Read",
              "range": true,
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "expr": "sum (rate(indexer_bytes_written_sum{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\", port_name=\"indexer\"}[$__rate_interval]))",
              "hide": false,
              "legendFormat": "Written",
              "range": true,
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Total Kafka Bytes/s Read/Written",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:1959",
              "format": "bytes",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:1960",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Rate of source Bytes a second received by Kafka-Peers",
          "fieldConfig": {
            "defaults": {
              "unit": "binBps"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 24
          },
          "hiddenSeries": false,
          "id": 8,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg by (instance, service) (rate(kafka_source_byte_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "{{instance}}",
              "range": true,
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Kafka Bytes/s Received (Pods)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:1712",
              "format": "binBps",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:1713",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Rate of Bytes a second  written by the indexer",
          "fieldConfig": {
            "defaults": {
              "unit": "binBps"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 24
          },
          "hiddenSeries": false,
          "id": 21,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg by (instance) (rate(indexer_bytes_written_sum{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\", port_name=\"indexer\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "{{$Instance}}",
              "range": true,
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Bytes/s written by the Indexer (Pods)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:1712",
              "format": "binBps",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:1713",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        }
      ],
      "title": "Kafka Bytes",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": {
        "type": "prometheus",
        "uid": "RZvikJ8nk"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 15
      },
      "id": 14,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Total rows received and written by the Kafka",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 16
          },
          "hiddenSeries": false,
          "id": 64,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "sum (rate(kafka_source_row_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "Read",
              "range": true,
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "expr": "sum (rate(indexer_rows_written_sum{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\", port_name=\"indexer\"}[$__rate_interval]))",
              "hide": false,
              "legendFormat": "Written",
              "range": true,
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Total Kafka Rows/s",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:1959",
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:1960",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Rate of source Rows  (Events) received a second by the Kafka-Peer",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 25
          },
          "hiddenSeries": false,
          "id": 63,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg by (instance, service) (rate(kafka_source_row_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "{{service}} - {{instance}}",
              "range": true,
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Avg Kafka Rows/s Received (Pods)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:1959",
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:1960",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "unit": "short"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 25
          },
          "hiddenSeries": false,
          "id": 33,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg by (instance) (rate(indexer_rows_written_sum{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\", port_name=\"indexer\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "{{$Instance}}",
              "range": true,
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Avg Rows/s written by the Indexer (Pods)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:1712",
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:1713",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        }
      ],
      "title": "Kafka Rows",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": {
        "type": "prometheus",
        "uid": "RZvikJ8nk"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 16
      },
      "id": 12,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Rate of Kafka Read Errors a second experienced by the Kafka-Peers",
          "fieldConfig": {
            "defaults": {
              "unit": "none"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 17
          },
          "hiddenSeries": false,
          "id": 28,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg by (instance) (rate(kafka_source_read_error_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "{{instance}}",
              "range": true,
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Kafka Read Error/s Rate",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:2683",
              "format": "none",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:2684",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Rate of Kafka Write Errors a second experienced by the Kafka-Peers",
          "fieldConfig": {
            "defaults": {
              "unit": "none"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 17
          },
          "hiddenSeries": false,
          "id": 54,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg by (instance) (rate(indexer_partitions_rejected_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "{{instance}}",
              "range": true,
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Kafka Write Error/s Rate",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:2683",
              "format": "none",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:2684",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "The number of checkpoints between the last produced message and the last consumers committed offset.",
          "fieldConfig": {
            "defaults": {
              "unit": "none"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 26
          },
          "hiddenSeries": false,
          "id": 2,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg by (instance) (kafka_source_lag{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"})",
              "interval": "",
              "legendFormat": "{{instance}}",
              "range": true,
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Kafka Source Lag",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:2683",
              "format": "none",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:2684",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Rate of Kafka Write Errors by Type a second experienced by the Kafka-Peers",
          "fieldConfig": {
            "defaults": {
              "unit": "none"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 26
          },
          "hiddenSeries": false,
          "id": 57,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "9.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "avg(rate(indexer_partitions_rejected_bucket{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\",le=\"0\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "File parse failure",
              "range": true,
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "expr": "avg(rate(indexer_partitions_rejected_bucket{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\",le=\"1\"}[$__rate_interval]))",
              "hide": false,
              "legendFormat": "Schema mismatch error",
              "range": true,
              "refId": "B"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "expr": "avg(rate(indexer_partitions_rejected_bucket{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\",le=\"2\"}[$__rate_interval]))",
              "hide": false,
              "legendFormat": " Failed to write partition",
              "range": true,
              "refId": "C"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "expr": "avg(rate(indexer_partitions_rejected_bucket{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\",le=\"3\"}[$__rate_interval]))",
              "hide": false,
              "legendFormat": "Block conversion/Insertion failure.",
              "range": true,
              "refId": "D"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Kafka Write Error/s Rate by Type",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:2683",
              "format": "none",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:2684",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        }
      ],
      "title": "Lag and Errors",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 39,
      "panels": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GCP_- PROD TEST PROM}"
          },
          "description": "Number of partition Created",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisCenteredZero": false,
                "axisColorMode": "text",
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "Partition creation time"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "s"
                  }
                ]
              },
              {
                "__systemRef": "hideSeriesFrom",
                "matcher": {
                  "id": "byNames",
                  "options": {
                    "mode": "exclude",
                    "names": [
                      "Partition written"
                    ],
                    "prefix": "All except:",
                    "readOnly": true
                  }
                },
                "properties": [
                  {
                    "id": "custom.hideFrom",
                    "value": {
                      "legend": false,
                      "tooltip": false,
                      "viz": true
                    }
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 18
          },
          "id": 37,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "8.4.4",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "sum (increase(indexer_partitions_written_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "interval": "",
              "legendFormat": "Partition written",
              "range": true,
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "sum (increase(indexer_partitions_rejected_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "hide": false,
              "interval": "",
              "legendFormat": "Partition rejected",
              "range": true,
              "refId": "B"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_GCP_- PROD TEST PROM}"
              },
              "editorMode": "code",
              "exemplar": true,
              "expr": "sum (rate(indexer_partition_write_seconds_count{app=~\"^$source.*\",instance=~\"^$kafkapeer.*\", project_name=~\"^$project\", table_name=~\"^$table\", transform_name=~\"^$transform\"}[$__rate_interval]))",
              "hide": false,
              "interval": "",
              "legendFormat": "Partition creation time",
              "range": true,
              "refId": "C"
            }
          ],
          "title": "Partition Information",
          "type": "timeseries"
        }
      ],
      "title": "Partition Informations",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 18
      },
      "id": 41,
      "panels": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${DS_GCP_- PROD TEST}"
          },
          "gridPos": {
            "h": 14,
            "w": 24,
            "x": 0,
            "y": 19
          },
          "id": 47,
          "options": {
            "dedupStrategy": "none",
            "enableLogDetails": true,
            "prettifyLogMessage": false,
            "showCommonLabels": false,
            "showLabels": false,
            "showTime": true,
            "sortOrder": "Descending",
            "wrapLogMessage": true
          },
          "targets": [
            {
              "datasource": {
                "type": "grafana-clickhouse-datasource",
                "uid": "${DS_GCP_- PROD TEST}"
              },
              "expand": true,
              "format": 0,
              "meta": {
                "builderOptions": {
                  "fields": [],
                  "limit": 100,
                  "mode": "list"
                }
              },
              "queryType": "sql",
              "rawSql": "SELECT\r\n    timestamp as time,\r\n    message,\r\n    level,\r\n    attrs.ACL,\r\n    attrs.Bucket,\r\n    accurateCastOrNull(bytes,'String') as bytes,\r\n    accurateCastOrNull(rows,'String') as rows,\r\n    accurateCastOrNull(columns,'String') as columns,\r\n    partition,\r\n    toString(attrs.CRC32C) as `attrs.CRC32C`,\r\n    attrs.CacheControl,\r\n    attrs.ContentDisposition,\r\n    accurateCastOrNull(data.columns,'String') as `data.columns`,\r\naccurateCastOrNull(data.data_size,'String') as `data.data_size`,\r\naccurateCastOrNull(data.index_size,'String') as `data.index_size`,\r\naccurateCastOrNull(data.manifest_size,'String') `data.manifest_size`,\r\naccurateCastOrNull(data.mem_size,'String') as `data.mem_size`,\r\naccurateCastOrNull(data.rows,'String') as `data.rows`,\r\ndata.source,\r\ndata_path,\r\nroot_path,\r\nshard_key_hash,\r\n    attrs.ContentEncoding,\r\n    attrs.ContentLanguage,\r\n    attrs.ContentType,\r\n    toString(attrs.Created) as `attrs.Created`,\r\n    toString(attrs.CustomTime) as `attrs.CustomTime`,\r\n    attrs.CustomerKeySHA256,\r\n    toString(attrs.Deleted) as `attrs.Deleted`,\r\n    attrs.Etag,\r\n    toString(attrs.EventBasedHold) as `attrs.EventBasedHold`,\r\n    toString(attrs.Generation) as `attrs.Generation`,    \r\n    attrs.KMSKeyName,\r\n    attrs.MD5,\r\n    attrs.MediaLink,\r\n    attrs.Metadata,\r\n    toString(attrs.Metageneration) as `attrs.Metageneration`,\r\n    attrs.Name,\r\n    attrs.Owner,\r\n    attrs.PredefinedACL,\r\n    attrs.Prefix,\r\n    toString(attrs.RetentionExpirationTime) as `attrs.RetentionExpirationTime`,\r\n    toString(attrs.Size) as `attrs.Size`,\r\n    attrs.StorageClass,\r\n    toString(attrs.TemporaryHold) as `attrs.TemporaryHold`,\r\n    toString(attrs.Updated) as `attrs.Updated`,\r\n    toString(catchall) as catchall,\r\n    destination,\r\n    error,\r\n    pool,\r\n    container,\r\n    toString(original_timestamp) as `original_timestamp`,\r\n    metric,\r\n    file,\r\n    toString(files) as files,\r\n    kubernetes.container_id,\r\n    kubernetes.container_image,\r\n    kubernetes.container_name,\r\n    CAST(kubernetes.namespace_labels, 'String') as `kubernetes.namespace_labels`,\r\n    CAST(kubernetes.pod_annotations, 'String') as `kubernetes.pod_annotations`,\r\n    kubernetes.pod_ip,\r\n    CAST(kubernetes.pod_ips, 'String') as `kubernetes.pod_ips`,\r\n    CAST(kubernetes.pod_labels, 'String') as `kubernetes.pod_labels`,\r\n    kubernetes.pod_name,\r\n    kubernetes.pod_namespace,\r\n    kubernetes.pod_node_name,\r\n    kubernetes.pod_owner,\r\n    kubernetes.pod_uid,\r\n    source,\r\n    toString(source_size) as `source_size`,\r\n    source_type,\r\n    accurateCastOrNull(max_timestamp,'String') as max_timestamp,\r\n    accurateCastOrNull(min_timestamp,'String') as min_timestamp,\r\n    stream\r\nFROM\r\n    hydro.logs\r\nWHERE\r\n    $__timeFilter(timestamp)\r\n    AND app='kafka-peer'\r\n    AND (\r\n  if('${search:text}' = '', true, message ILIKE '%${search}%') \r\n  OR if('${search:text}' = '', true, error ILIKE '%${search}%') \r\n  OR if('${search:text}' = '', true, exception ILIKE '%${search}%')\r\n  OR if('${search:text}' = '', true, query ILIKE '%${search}%')\r\n  )\r\n    AND $__conditionalAll(level IN (${level}), $level)\r\n    AND $__conditionalAll(kubernetes.pod_ip IN (${kafkapeer}), $kafkapeer)\r\nORDER BY\r\n    time DESC\r\nLIMIT\r\n1000\r\nSETTINGS hdx_query_max_timerange_sec=604800, hdx_query_max_execution_time=60,hdx_query_admin_comment='${__user.login}'",
              "refId": "A"
            }
          ],
          "title": "Logs Panel (Kafka-Peer)",
          "type": "logs"
        }
      ],
      "title": "Kakfa (Logs)",
      "type": "row"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 19
      },
      "id": 60,
      "panels": [],
      "title": "Kafka Indexer/Turbine (Logs)",
      "type": "row"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${DS_GCP_- PROD TEST}"
      },
      "gridPos": {
        "h": 14,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "id": 58,
      "options": {
        "dedupStrategy": "none",
        "enableLogDetails": true,
        "prettifyLogMessage": false,
        "showCommonLabels": false,
        "showLabels": false,
        "showTime": true,
        "sortOrder": "Descending",
        "wrapLogMessage": true
      },
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${DS_GCP_- PROD TEST}"
          },
          "expand": true,
          "format": 0,
          "meta": {
            "builderOptions": {
              "fields": [],
              "limit": 100,
              "mode": "list"
            }
          },
          "queryType": "sql",
          "rawSql": "SELECT\r\n    timestamp as time,\r\n    message,\r\n    level,\r\n    attrs.ACL,\r\n    attrs.Bucket,\r\n    accurateCastOrNull(bytes,'String') as bytes,\r\n    accurateCastOrNull(rows,'String') as rows,\r\n    accurateCastOrNull(columns,'String') as columns,\r\n    partition,\r\n    toString(attrs.CRC32C) as `attrs.CRC32C`,\r\n    attrs.CacheControl,\r\n    attrs.ContentDisposition,\r\n    accurateCastOrNull(data.columns,'String') as `data.columns`,\r\naccurateCastOrNull(data.data_size,'String') as `data.data_size`,\r\naccurateCastOrNull(data.index_size,'String') as `data.index_size`,\r\naccurateCastOrNull(data.manifest_size,'String') `data.manifest_size`,\r\naccurateCastOrNull(data.mem_size,'String') as `data.mem_size`,\r\naccurateCastOrNull(data.rows,'String') as `data.rows`,\r\ndata.source,\r\ndata_path,\r\nroot_path,\r\nshard_key_hash,\r\n    attrs.ContentEncoding,\r\n    attrs.ContentLanguage,\r\n    attrs.ContentType,\r\n    toString(attrs.Created) as `attrs.Created`,\r\n    toString(attrs.CustomTime) as `attrs.CustomTime`,\r\n    attrs.CustomerKeySHA256,\r\n    toString(attrs.Deleted) as `attrs.Deleted`,\r\n    attrs.Etag,\r\n    toString(attrs.EventBasedHold) as `attrs.EventBasedHold`,\r\n    toString(attrs.Generation) as `attrs.Generation`,    \r\n    attrs.KMSKeyName,\r\n    attrs.MD5,\r\n    attrs.MediaLink,\r\n    attrs.Metadata,\r\n    toString(attrs.Metageneration) as `attrs.Metageneration`,\r\n    attrs.Name,\r\n    attrs.Owner,\r\n    attrs.PredefinedACL,\r\n    attrs.Prefix,\r\n    toString(attrs.RetentionExpirationTime) as `attrs.RetentionExpirationTime`,\r\n    toString(attrs.Size) as `attrs.Size`,\r\n    attrs.StorageClass,\r\n    toString(attrs.TemporaryHold) as `attrs.TemporaryHold`,\r\n    toString(attrs.Updated) as `attrs.Updated`,\r\n    toString(catchall) as catchall,\r\n    destination,\r\n    error,\r\n    pool,\r\n    container,\r\n    toString(original_timestamp) as `original_timestamp`,\r\n    metric,\r\n    file,\r\n    toString(files) as files,\r\n    kubernetes.container_id,\r\n    kubernetes.container_image,\r\n    kubernetes.container_name,\r\n    CAST(kubernetes.namespace_labels, 'String') as `kubernetes.namespace_labels`,\r\n    CAST(kubernetes.pod_annotations, 'String') as `kubernetes.pod_annotations`,\r\n    kubernetes.pod_ip,\r\n    CAST(kubernetes.pod_ips, 'String') as `kubernetes.pod_ips`,\r\n    CAST(kubernetes.pod_labels, 'String') as `kubernetes.pod_labels`,\r\n    kubernetes.pod_name,\r\n    kubernetes.pod_namespace,\r\n    kubernetes.pod_node_name,\r\n    kubernetes.pod_owner,\r\n    kubernetes.pod_uid,\r\n    source,\r\n    toString(source_size) as `source_size`,\r\n    source_type,\r\n    accurateCastOrNull(max_timestamp,'String') as max_timestamp,\r\n    accurateCastOrNull(min_timestamp,'String') as min_timestamp,\r\n    stream\r\nFROM\r\n    hydro.logs\r\nWHERE\r\n    $__timeFilter(timestamp)\r\n    AND app='kafka-peer'\r\n    AND container='turbine'\r\n    AND (\r\n  if('${search:text}' = '', true, message ILIKE '%${search}%') \r\n  OR if('${search:text}' = '', true, error ILIKE '%${search}%') \r\n  OR if('${search:text}' = '', true, exception ILIKE '%${search}%')\r\n  OR if('${search:text}' = '', true, query ILIKE '%${search}%')\r\n  )\r\n    AND $__conditionalAll(level IN (${level}), $level)\r\n    AND $__conditionalAll(kubernetes.pod_ip IN (${kafkapeer}), $kafkapeer)\r\nORDER BY\r\n    time DESC\r\nLIMIT\r\n    1000\r\nSETTINGS hdx_query_max_timerange_sec=604800, hdx_query_max_execution_time=60,hdx_query_admin_comment='${__user.login}'",
          "refId": "A"
        }
      ],
      "title": "Logs Panel (Kafka-Peer)",
      "type": "logs"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_GCP_- PROD TEST PROM}"
        },
        "definition": "label_values(kafka_source_read_count,app)",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "source",
        "options": [],
        "query": {
          "query": "label_values(kafka_source_read_count,app)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_GCP_- PROD TEST PROM}"
        },
        "definition": "label_values(kafka_source_byte_count{port_name=~\".*$source.*\"}, component_ip)",
        "description": "Pod running Kafka Service receiving Streaming data",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "kafkapeer",
        "options": [],
        "query": {
          "query": "label_values(kafka_source_byte_count{port_name=~\".*$source.*\"}, component_ip)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_GCP_- PROD TEST PROM}"
        },
        "definition": "label_values(kafka_source_byte_count, project_name)",
        "hide": 0,
        "includeAll": true,
        "multi": false,
        "name": "project",
        "options": [],
        "query": {
          "query": "label_values(kafka_source_byte_count, project_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_GCP_- PROD TEST PROM}"
        },
        "definition": "label_values(kafka_source_byte_count, table_name)",
        "hide": 0,
        "includeAll": true,
        "multi": false,
        "name": "table",
        "options": [],
        "query": {
          "query": "label_values(kafka_source_byte_count, table_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_GCP_- PROD TEST PROM}"
        },
        "definition": "label_values(kafka_source_byte_count, transform_name)",
        "hide": 0,
        "includeAll": true,
        "multi": false,
        "name": "transform",
        "options": [],
        "query": {
          "query": "label_values(kafka_source_byte_count, transform_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "grafana-clickhouse-datasource",
          "uid": "${DS_GCP_- PROD TEST}"
        },
        "definition": "SELECT arrayJoin( ['info','warning','warn','error','debug','trace'])",
        "hide": 0,
        "includeAll": true,
        "label": "Level (Logs)",
        "multi": true,
        "name": "level",
        "options": [],
        "query": "SELECT arrayJoin( ['info','warning','warn','error','debug','trace'])",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": "",
          "value": ""
        },
        "hide": 0,
        "label": "Search(Logs)",
        "name": "search",
        "options": [
          {
            "selected": true,
            "text": "",
            "value": ""
          }
        ],
        "query": "",
        "skipUrlSync": false,
        "type": "textbox"
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Hydrolix - Kafka Ingest",
  "uid": "Rb7KvszVk",
  "version": 39,
  "weekStart": ""
}