From c9913bbec42879636e9f59e5ab1eb9705314c7d6 Mon Sep 17 00:00:00 2001 From: friendly Friend Date: Sat, 18 Mar 2023 10:00:21 -0700 Subject: [PATCH] grafana fix --- grafana/dashboard-immich.json | 162 +++++++++++++++++++++------------- 1 file changed, 103 insertions(+), 59 deletions(-) diff --git a/grafana/dashboard-immich.json b/grafana/dashboard-immich.json index c7d8cd9..0ab1fb3 100644 --- a/grafana/dashboard-immich.json +++ b/grafana/dashboard-immich.json @@ -1,4 +1,47 @@ { + "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.4.3" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -24,14 +67,14 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 11, + "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -80,7 +123,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -97,7 +140,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -147,7 +190,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "immich_server_stats_user_count", @@ -162,7 +205,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -209,7 +252,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "sum(immich_server_stats_usage_by_users)", @@ -224,7 +267,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -271,7 +314,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "immich_server_info_totalDiskSize", @@ -286,7 +329,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -333,7 +376,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "immich_server_info_diskUse", @@ -348,7 +391,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -370,10 +413,6 @@ { "color": "#EAB839", "value": 20 - }, - { - "color": "#6ED0E0", - "value": 30 } ] }, @@ -389,7 +428,7 @@ }, "id": 16, "options": { - "colorMode": "value", + "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", @@ -407,11 +446,11 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, - "expr": "100 - immich_server_info_diskUsagePercentage", + "expr": "immich_server_info_diskUsagePercentage", "format": "time_series", "instant": true, "interval": "", @@ -426,7 +465,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -474,7 +513,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -492,7 +531,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -540,7 +579,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_useage_growth[7d])", @@ -556,7 +595,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -608,7 +647,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "immich_server_stats_usage_by_users", @@ -623,7 +662,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -671,7 +710,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_useage_growth[30h])", @@ -687,7 +726,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -735,7 +774,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_useage_growth[365d])", @@ -751,7 +790,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -796,7 +835,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_photos_growth[24h])", @@ -812,7 +851,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -857,7 +896,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_photos_growth[7d])", @@ -873,7 +912,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -925,7 +964,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -942,7 +981,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -989,7 +1028,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_photos_growth[4w])", @@ -1005,7 +1044,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1052,7 +1091,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_photos_growth[52w])", @@ -1068,7 +1107,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "description": "amount of photos over time", "fieldConfig": { @@ -1148,7 +1187,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "immich_server_stats_photos_by_users", @@ -1164,7 +1203,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1176,7 +1215,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] } @@ -1210,7 +1250,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_videos_growth[1d])", @@ -1226,7 +1266,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1238,7 +1278,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] } @@ -1272,7 +1313,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_videos_growth[4w])\r\n", @@ -1288,7 +1329,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1340,7 +1381,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "immich_server_stats_videos_by_users", @@ -1355,7 +1396,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1367,7 +1408,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] } @@ -1401,7 +1443,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_videos_growth[1w])", @@ -1417,7 +1459,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1429,7 +1471,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] } @@ -1463,7 +1506,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "increase(immich_server_stats_videos_growth[52w])\r\n", @@ -1479,7 +1522,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "description": "amount of videos over time", "fieldConfig": { @@ -1525,7 +1568,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] } @@ -1555,7 +1599,7 @@ { "datasource": { "type": "prometheus", - "uid": "o-nLTb0Vz" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "immich_server_stats_videos_by_users", @@ -1585,6 +1629,6 @@ "timezone": "", "title": "immich", "uid": "ZWWp3aa4k", - "version": 3, + "version": 7, "weekStart": "" } \ No newline at end of file