From e88bb581c6da168ce71baa2b35b14c8334430241 Mon Sep 17 00:00:00 2001 From: simono41 Date: Thu, 17 Jul 2025 09:46:15 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20nach=20=E2=80=9E/=E2=80=9C=20hochlade?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard.json | 256 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 256 insertions(+) create mode 100644 dashboard.json diff --git a/dashboard.json b/dashboard.json new file mode 100644 index 0000000..737fdbb --- /dev/null +++ b/dashboard.json @@ -0,0 +1,256 @@ +{ + "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "12.0.2" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value (lastNotNull)" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "dark-green", + "index": 1, + "text": "Kein Update Verfügbar" + }, + "1": { + "color": "dark-red", + "index": 0, + "text": "Update Verfügbar" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "applyToRow": false, + "type": "color-background", + "wrapText": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 21, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 161, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Updatefähig" + } + ] + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "docker_image_update_available{instance=\"$instance\"}", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Docker Container Updates", + "transformations": [ + { + "id": "groupBy", + "options": { + "fields": { + "Value": { + "aggregations": [ + "lastNotNull" + ], + "operation": "aggregate" + }, + "__name__": { + "aggregations": [] + }, + "container_name": { + "aggregations": [], + "operation": "groupby" + }, + "image": { + "aggregations": [], + "operation": "groupby" + }, + "instance": { + "aggregations": [] + }, + "job": { + "aggregations": [] + }, + "tag": { + "aggregations": [], + "operation": "groupby" + } + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Value (lastNotNull)": "Updatefähig", + "container_name": "Container Name", + "image": "Image Name" + } + } + } + ], + "type": "table" + } + ], + "schemaVersion": 41, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "definition": "label_values(docker_image_update_available,instance)", + "label": "Instanz", + "name": "instance", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(docker_image_update_available,instance)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Docker Updates", + "uid": "b8b5480e-ac20-40f3-ba15-3f74350ec7e6", + "version": 5, + "weekStart": "" +} \ No newline at end of file