diff options
Diffstat (limited to 'tharos/dashboards/system.json')
| -rw-r--r-- | tharos/dashboards/system.json | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/tharos/dashboards/system.json b/tharos/dashboards/system.json new file mode 100644 index 0000000..6b8ec35 --- /dev/null +++ b/tharos/dashboards/system.json @@ -0,0 +1,195 @@ +{ + "editable": true, + "id": 1, + "panels": [ + { + "id": 1, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "custom": { + "drawStyle": "bars" + }, + "unit": "decbytes" + } + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "options": { + "legend": { + "showLegend": false + } + }, + "pluginVersion": "12.0.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes", + "legendFormat": "Total", + "range": true, + "refId": "total" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "expr": "node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes", + "refId": "used" + } + ], + "title": "Arbeitsspeicher", + "transformations": [ + { + "id": "configFromData", + "options": { + "applyTo": { + "id": "byName", + "options": "Value" + }, + "configRefId": "total", + "mappings": [ + { + "fieldName": "Total", + "handlerKey": "max" + } + ] + } + } + ] + }, + { + "id": 2, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "custom": { + "drawStyle": "bars", + "stacking": { + "group": "A", + "mode": "normal" + } + }, + "max": 1, + "unit": "percentunit" + } + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "options": { + "legend": { + "showLegend": true + } + }, + "pluginVersion": "12.0.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "expr": "sum by(mode) (rate(node_cpu_seconds_total{mode!~\"idle\"}[$__rate_interval])) / scalar(count(count by(cpu) (node_cpu_seconds_total)))", + "legendFormat": "{{mode}}" + } + ], + "title": "Prozessorlast" + }, + { + "id": 3, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "custom": { + "drawStyle": "bars", + "stacking": { + "group": "A", + "mode": "normal" + } + }, + "max": 1, + "unit": "percentunit" + } + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 8 + }, + "options": { + "legend": { + "showLegend": true + } + }, + "pluginVersion": "12.0.5", + "repeat": "CPU", + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "expr": "rate(node_cpu_seconds_total{cpu=\"$CPU\", mode!=\"idle\"}[$__rate_interval])", + "legendFormat": "{{mode}}", + "range": true, + "refId": "A" + } + ], + "title": "Prozessor $CPU", + "type": "timeseries" + } + ], + "refresh": "10s", + "schemaVersion": 41, + "templating": { + "list": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "allowCustomValue": false, + "definition": "label_values(node_cpu_seconds_total,cpu)", + "includeAll": true, + "name": "CPU", + "query": { + "qryType": 1, + "query": "label_values(node_cpu_seconds_total,cpu)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timezone": "browser", + "title": "System", + "uid": "d6a74067-e6b9-4460-8119-d205c606ef68", + "version": 1 +} |
