{ "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": "Dashboard to evaluate the disk space usage of Prometheus, Grafana and Loki data.", "editable": true, "fiscalYearStartMonth": 0, "gnetId": 14173, "graphTooltip": 1, "links": [], "liveNow": false, "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 19, "panels": [], "title": "Prometheus", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "links": [], "unit": "bytes" }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 16, "x": 0, "y": 1 }, "hiddenSeries": false, "id": 2, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, "min": true, "rightSide": true, "show": true, "sideWidth": 400, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "maxDataPoints": 100, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.3.1", "pointradius": 2, "points": false, "renderer": "flot", "repeatDirection": "v", "seriesOverrides": [ { "alias": "Retention", "color": "rgb(255, 255, 255)", "dashes": true, "fill": 0 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "kubelet_volume_stats_available_bytes{namespace=\"prometheus\",persistentvolumeclaim=\"prometheus-server\"}", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{persistentvolumeclaim}} Disk size", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "kubelet_volume_stats_used_bytes{namespace=\"prometheus\",persistentvolumeclaim=\"prometheus-server\"}", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{persistentvolumeclaim}} Disk usage", "range": true, "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "disk space used (PVC \"prometheus-server\")", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 7 }, "id": 21, "panels": [], "title": "Loki", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "links": [], "unit": "bytes" }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 16, "x": 0, "y": 8 }, "hiddenSeries": false, "id": 22, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, "min": true, "rightSide": true, "show": true, "sideWidth": 400, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "maxDataPoints": 100, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.3.1", "pointradius": 2, "points": false, "renderer": "flot", "repeatDirection": "v", "seriesOverrides": [ { "alias": "Retention", "color": "rgb(255, 255, 255)", "dashes": true, "fill": 0 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "kubelet_volume_stats_available_bytes{namespace=\"loki\",persistentvolumeclaim=\"storage-loki-stack-0\"}", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{persistentvolumeclaim}} Disk size", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "kubelet_volume_stats_used_bytes{namespace=\"loki\",persistentvolumeclaim=\"storage-loki-stack-0\"}", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{persistentvolumeclaim}} Disk usage", "range": true, "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "disk space used (PVC \"storage-loki-stack-0\")", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "id": 26, "panels": [], "title": "Grafana", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "fieldConfig": { "defaults": { "links": [], "unit": "bytes" }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 16, "x": 0, "y": 15 }, "hiddenSeries": false, "id": 27, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, "min": true, "rightSide": true, "show": true, "sideWidth": 400, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "maxDataPoints": 100, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.3.1", "pointradius": 2, "points": false, "renderer": "flot", "repeatDirection": "v", "seriesOverrides": [ { "alias": "Retention", "color": "rgb(255, 255, 255)", "dashes": true, "fill": 0 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "kubelet_volume_stats_available_bytes{namespace=\"grafana\",persistentvolumeclaim=\"grafana\"}", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "{{persistentvolumeclaim}} Disk size", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "editorMode": "code", "expr": "kubelet_volume_stats_used_bytes{namespace=\"grafana\",persistentvolumeclaim=\"grafana\"}", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{persistentvolumeclaim}} Disk usage", "range": true, "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "disk space used (PVC \"grafana\")", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } } ], "refresh": false, "schemaVersion": 37, "style": "dark", "tags": [ "prometheus" ], "templating": { "list": [] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Prometheus, Grafana and Loki disk space consumption evaluation", "uid": "TAiSVWQGzzz", "version": 1, "weekStart": "" }