- Replace 'increase' with 'delta' to get the proper calculations when Immich is restarted or updated (avoid peaks on increase as "new" values are updated)

- Updates screnshot to latest dashboard
This commit is contained in:
Vegard Fladby
2023-10-05 12:49:14 +02:00
parent c23ad910df
commit 1ddb0c786c
2 changed files with 90 additions and 68 deletions

View File

@@ -15,7 +15,7 @@
"type": "grafana", "type": "grafana",
"id": "grafana", "id": "grafana",
"name": "Grafana", "name": "Grafana",
"version": "10.0.2" "version": "10.1.4"
}, },
{ {
"type": "panel", "type": "panel",
@@ -118,7 +118,7 @@
}, },
"textMode": "name" "textMode": "name"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -185,7 +185,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -247,7 +247,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -309,7 +309,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -371,7 +371,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -433,7 +433,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -487,8 +487,8 @@
"hideTimeOverride": false, "hideTimeOverride": false,
"id": 24, "id": 24,
"options": { "options": {
"colorMode": "background", "colorMode": "none",
"graphMode": "none", "graphMode": "area",
"justifyMode": "center", "justifyMode": "center",
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
@@ -500,7 +500,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -509,8 +509,9 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "increase(immich_server_stats_usage_growth[1d])", "expr": "delta(immich_server_stats_usage_growth[24h])",
"instant": false, "instant": false,
"interval": "",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -553,8 +554,8 @@
"hideTimeOverride": false, "hideTimeOverride": false,
"id": 26, "id": 26,
"options": { "options": {
"colorMode": "background", "colorMode": "none",
"graphMode": "none", "graphMode": "area",
"justifyMode": "auto", "justifyMode": "auto",
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
@@ -566,7 +567,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -574,7 +575,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_usage_growth[1w])", "expr": "delta(immich_server_stats_usage_growth[1w])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -620,7 +621,11 @@
"legend": { "legend": {
"displayMode": "list", "displayMode": "list",
"placement": "right", "placement": "right",
"showLegend": true "showLegend": true,
"values": [
"percent",
"value"
]
}, },
"pieType": "pie", "pieType": "pie",
"reduceOptions": { "reduceOptions": {
@@ -684,8 +689,8 @@
"hideTimeOverride": false, "hideTimeOverride": false,
"id": 28, "id": 28,
"options": { "options": {
"colorMode": "background", "colorMode": "none",
"graphMode": "none", "graphMode": "area",
"justifyMode": "auto", "justifyMode": "auto",
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
@@ -697,7 +702,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -705,7 +710,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_usage_growth[4w])", "expr": "delta(immich_server_stats_usage_growth[4w])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -748,7 +753,7 @@
"hideTimeOverride": false, "hideTimeOverride": false,
"id": 30, "id": 30,
"options": { "options": {
"colorMode": "background", "colorMode": "none",
"graphMode": "area", "graphMode": "area",
"justifyMode": "auto", "justifyMode": "auto",
"orientation": "auto", "orientation": "auto",
@@ -761,7 +766,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -769,7 +774,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_usage_growth[1y])", "expr": "delta(immich_server_stats_usage_growth[1y])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -806,7 +811,7 @@
"x": 0, "x": 0,
"y": 11 "y": 11
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 32, "id": 32,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -822,7 +827,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -830,7 +835,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[24h])", "expr": "delta(immich_server_stats_photos_growth[24h])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -867,7 +872,7 @@
"x": 6, "x": 6,
"y": 11 "y": 11
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 34, "id": 34,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -883,7 +888,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -891,7 +896,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[7d])", "expr": "delta(immich_server_stats_photos_growth[1w])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -906,6 +911,7 @@
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -937,7 +943,11 @@
"legend": { "legend": {
"displayMode": "table", "displayMode": "table",
"placement": "right", "placement": "right",
"showLegend": true "showLegend": true,
"values": [
"value",
"percent"
]
}, },
"pieType": "pie", "pieType": "pie",
"reduceOptions": { "reduceOptions": {
@@ -961,13 +971,14 @@
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "immich_server_stats_photos_by_users", "expr": "immich_server_stats_photos_by_users",
"format": "time_series",
"instant": false, "instant": false,
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "Photos", "title": "Total photos by user",
"type": "piechart" "type": "piechart"
}, },
{ {
@@ -999,7 +1010,7 @@
"x": 0, "x": 0,
"y": 15 "y": 15
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 36, "id": 36,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -1015,7 +1026,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -1023,7 +1034,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[4w])", "expr": "delta(immich_server_stats_photos_growth[4w])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1062,7 +1073,7 @@
"x": 6, "x": 6,
"y": 15 "y": 15
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 38, "id": 38,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -1078,7 +1089,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -1086,7 +1097,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[1y])", "expr": "delta(immich_server_stats_photos_growth[1y])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1122,6 +1133,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
@@ -1181,7 +1193,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_photos_by_users", "expr": "delta(immich_server_stats_photos_by_users[4w])",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1217,6 +1229,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
@@ -1276,7 +1289,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_photos_by_users", "expr": "delta(immich_server_stats_photos_by_users[1y])",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1314,7 +1327,7 @@
"x": 0, "x": 0,
"y": 33 "y": 33
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 42, "id": 42,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -1330,7 +1343,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -1338,7 +1351,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1d])", "expr": "delta(immich_server_stats_videos_growth[24h])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1376,7 +1389,7 @@
"x": 6, "x": 6,
"y": 33 "y": 33
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 40, "id": 40,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -1392,7 +1405,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -1400,7 +1413,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1w])", "expr": "delta(immich_server_stats_videos_growth[1w])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1446,7 +1459,10 @@
"displayMode": "list", "displayMode": "list",
"placement": "right", "placement": "right",
"showLegend": true, "showLegend": true,
"values": [] "values": [
"percent",
"value"
]
}, },
"pieType": "pie", "pieType": "pie",
"reduceOptions": { "reduceOptions": {
@@ -1474,7 +1490,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "Videos", "title": "Total videos by user",
"type": "piechart" "type": "piechart"
}, },
{ {
@@ -1505,7 +1521,7 @@
"x": 0, "x": 0,
"y": 37 "y": 37
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 44, "id": 44,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -1521,7 +1537,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -1529,7 +1545,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[4w])\r\n", "expr": "delta(immich_server_stats_videos_growth[4w])\r\n",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1567,7 +1583,7 @@
"x": 6, "x": 6,
"y": 37 "y": 37
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 46, "id": 46,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@@ -1583,7 +1599,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "10.0.2", "pluginVersion": "10.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -1591,7 +1607,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1y])\r\n", "expr": "delta(immich_server_stats_videos_growth[1y])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
@@ -1617,6 +1633,7 @@
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "right", "axisPlacement": "right",
"axisSoftMin": 9000,
"barAlignment": 0, "barAlignment": 0,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 30, "fillOpacity": 30,
@@ -1626,12 +1643,13 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
}, },
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 1,
"scaleDistribution": { "scaleDistribution": {
"type": "linear" "type": "linear"
}, },
@@ -1639,7 +1657,7 @@
"spanNulls": true, "spanNulls": true,
"stacking": { "stacking": {
"group": "A", "group": "A",
"mode": "normal" "mode": "none"
}, },
"thresholdsStyle": { "thresholdsStyle": {
"mode": "off" "mode": "off"
@@ -1658,12 +1676,13 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 41 "y": 41
}, },
"id": 20, "hideTimeOverride": false,
"id": 49,
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -1683,14 +1702,14 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_videos_by_users", "expr": "delta(immich_server_stats_videos_by_users[4w])",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "1M", "timeFrom": "1M",
"title": "Videos growth", "title": "Videos Growth",
"type": "timeseries" "type": "timeseries"
}, },
{ {
@@ -1709,6 +1728,7 @@
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "right", "axisPlacement": "right",
"axisSoftMin": 9000,
"barAlignment": 0, "barAlignment": 0,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 30, "fillOpacity": 30,
@@ -1718,12 +1738,13 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
}, },
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 1,
"scaleDistribution": { "scaleDistribution": {
"type": "linear" "type": "linear"
}, },
@@ -1731,7 +1752,7 @@
"spanNulls": true, "spanNulls": true,
"stacking": { "stacking": {
"group": "A", "group": "A",
"mode": "normal" "mode": "none"
}, },
"thresholdsStyle": { "thresholdsStyle": {
"mode": "off" "mode": "off"
@@ -1750,12 +1771,13 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 49 "y": 48
}, },
"id": 48, "hideTimeOverride": false,
"id": 50,
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -1775,18 +1797,18 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_videos_by_users", "expr": "delta(immich_server_stats_videos_by_users[1y])",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "1y", "timeFrom": "1y",
"title": "Videos growth", "title": "Videos Growth",
"type": "timeseries" "type": "timeseries"
} }
], ],
"refresh": "5s", "refresh": "30s",
"revision": 1, "revision": 1,
"schemaVersion": 38, "schemaVersion": 38,
"style": "dark", "style": "dark",
@@ -1802,6 +1824,6 @@
"timezone": "", "timezone": "",
"title": "immich", "title": "immich",
"uid": "ZWWp3aa4k", "uid": "ZWWp3aa4k",
"version": 9, "version": 28,
"weekStart": "" "weekStart": ""
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 248 KiB