Grafana dashboard: Tiny Database
Description: Persistence Storage


{
  "__inputs": [],
  "__requires": [],
  "annotations": {
    "list": []
  },
  "description": "Persistence Storage",
  "editable": true,
  "gnetId": 11683,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "refresh": "",
  "rows": [
    {
      "collapse": false,
      "collapsed": false,
      "height": 360,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "-- Mixed --",
          "decimals": 0,
          "fill": 0,
          "gridPos": {},
          "id": 2,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 0.5,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": "Prometheus",
              "expr": "redis_connected_clients",
              "format": "time_series",
              "interval": "10s",
              "intervalFactor": 4,
              "legendFormat": "{{ app }} {{ role }}",
              "refId": "A"
            },
            {
              "alias": "test-write",
              "datasource": "Cloudwatch",
              "dimensions": {
                "DBInstanceIdentifier": "test-write"
              },
              "highResolution": false,
              "metricName": "DatabaseConnections",
              "namespace": "AWS/RDS",
              "period": "1m",
              "refId": "B",
              "region": "ap-southeast-1",
              "statistics": [
                "Average"
              ]
            },
            {
              "alias": "test-read",
              "datasource": "Cloudwatch",
              "dimensions": {
                "DBInstanceIdentifier": "test-read"
              },
              "highResolution": false,
              "metricName": "DatabaseConnections",
              "namespace": "AWS/RDS",
              "period": "1m",
              "refId": "C",
              "region": "ap-southeast-1",
              "statistics": [
                "Average"
              ]
            },
            {
              "alias": "production-write",
              "datasource": "Cloudwatch",
              "dimensions": {
                "DBInstanceIdentifier": "production-write"
              },
              "highResolution": false,
              "metricName": "DatabaseConnections",
              "namespace": "AWS/RDS",
              "period": "1m",
              "refId": "D",
              "region": "ap-southeast-1",
              "statistics": [
                "Average"
              ]
            },
            {
              "alias": "production-read",
              "datasource": "Cloudwatch",
              "dimensions": {
                "DBInstanceIdentifier": "production-read"
              },
              "highResolution": false,
              "metricName": "DatabaseConnections",
              "namespace": "AWS/RDS",
              "period": "1m",
              "refId": "E",
              "region": "ap-southeast-1",
              "statistics": [
                "Average"
              ]
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Connection pool",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "-- Mixed --",
          "decimals": 0,
          "fill": 10,
          "gridPos": {},
          "id": 3,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 0.5,
          "points": false,
          "renderer": "flot",
          "repeat": null,
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "test-write",
              "datasource": "Cloudwatch",
              "dimensions": {
                "DBInstanceIdentifier": "test-write"
              },
              "highResolution": false,
              "metricName": "FreeableMemory",
              "namespace": "AWS/RDS",
              "period": "1m",
              "refId": "A",
              "region": "ap-southeast-1",
              "statistics": [
                "Average"
              ]
            },
            {
              "alias": "test-read",
              "datasource": "Cloudwatch",
              "dimensions": {
                "DBInstanceIdentifier": "test-read"
              },
              "highResolution": false,
              "metricName": "FreeableMemory",
              "namespace": "AWS/RDS",
              "period": "1m",
              "refId": "B",
              "region": "ap-southeast-1",
              "statistics": [
                "Average"
              ]
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "RDS Free Memory",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "-- Mixed --",
          "decimals": 0,
          "fill": 0,
          "gridPos": {},
          "id": 4,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 0.5,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": "Prometheus",
              "expr": "redis_db_keys{role=\"master\"}",
              "format": "time_series",
              "interval": "10s",
              "intervalFactor": 4,
              "legendFormat": "{{ app }} {{ role }}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Redis keys",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "Database Traffic",
      "titleSize": "h6",
      "type": "row"
    },
    {
      "collapse": false,
      "collapsed": false,
      "height": 360,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "-- Mixed --",
          "decimals": 0,
          "fill": 1,
          "gridPos": {},
          "id": 5,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 0.5,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 6,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": "Prometheus",
              "expr": "topk(15,sort_desc(sum(delta(kafka_topic_partition_current_offset{topic=~\".*\", topic!=\"__consumer_offsets\"}[5m])) by (topic)))",
              "format": "time_series",
              "interval": "10s",
              "intervalFactor": 4,
              "legendFormat": "{{ topic }}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Message Producing",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "-- Mixed --",
          "decimals": 0,
          "fill": 1,
          "gridPos": {},
          "id": 6,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 0.5,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 6,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": "Prometheus",
              "expr": "topk(15,sort_desc(sum(delta(kafka_consumergroup_current_offset{topic=~\".*\", topic!=\"__consumer_offsets\"}[5m])) by (consumergroup, topic)))",
              "format": "time_series",
              "interval": "10s",
              "intervalFactor": 4,
              "legendFormat": "{{ consumergroup }} - {{ topic }}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Message Consuming",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "decimals": 0,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "Kafka Traffic",
      "titleSize": "h6",
      "type": "row"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [
    "database",
    "storage"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "text": "Prometheus",
          "value": "Prometheus"
        },
        "hide": 2,
        "label": null,
        "name": "prometheus",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "type": "datasource"
      },
      {
        "current": {
          "text": "Cloudwatch",
          "value": "Cloudwatch"
        },
        "hide": 2,
        "label": null,
        "name": "cloudwatch",
        "options": [],
        "query": "cloudwatch",
        "refresh": 1,
        "regex": "",
        "type": "datasource"
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "Tiny Database",
  "version": 0
}