Further optimization of Dashboard:

- Formated text to make it consistent
- Changed hours/days/month/year to use 1d/1w/4w/1y
- Changed Weekly data growth to use 1w to show the last 7 days.
- Changed Monthly data growth to use 4w to show the last 4 weeks.
- Changed Yearly data growth to use 1y to show the last 1y.
- Added Photos growth last year visual
- Added Videos growth last year visual
- Corrected some spelling errors in 'expr' so that the values are now calculated correctly
This commit is contained in:
Vegard Fladby 2023-07-20 20:14:28 +02:00
parent 513856beff
commit 99c9b84f40

View file

@ -199,7 +199,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "user count", "title": "User count",
"type": "stat" "type": "stat"
}, },
{ {
@ -261,7 +261,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "disk space used by Immich", "title": "Disk space used by Immich",
"type": "stat" "type": "stat"
}, },
{ {
@ -323,7 +323,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "total disk size", "title": "Total disk size",
"type": "stat" "type": "stat"
}, },
{ {
@ -385,7 +385,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "total disk size usage", "title": "Total disk size usage",
"type": "stat" "type": "stat"
}, },
{ {
@ -451,7 +451,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "remaining disk size", "title": "Remaining disk size",
"type": "stat" "type": "stat"
}, },
{ {
@ -484,7 +484,7 @@
"x": 0, "x": 0,
"y": 3 "y": 3
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 24, "id": 24,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
@ -509,7 +509,7 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "increase(immich_server_stats_usage_growth[24h])", "expr": "increase(immich_server_stats_usage_growth[1d])",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
@ -550,7 +550,7 @@
"x": 6, "x": 6,
"y": 3 "y": 3
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 26, "id": 26,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
@ -574,13 +574,13 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_useage_growth[7d])", "expr": "increase(immich_server_stats_usage_growth[1w])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/w", "timeFrom": "1w",
"title": "Weekly data growth", "title": "Weekly data growth",
"type": "stat" "type": "stat"
}, },
@ -648,7 +648,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "disk usage by user", "title": "Disk usage by user",
"type": "piechart" "type": "piechart"
}, },
{ {
@ -681,7 +681,7 @@
"x": 0, "x": 0,
"y": 7 "y": 7
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 28, "id": 28,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
@ -705,13 +705,13 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_usage_growth[30h])", "expr": "increase(immich_server_stats_usage_growth[4w])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/M", "timeFrom": "1M",
"title": "Monthly data growth", "title": "Monthly data growth",
"type": "stat" "type": "stat"
}, },
@ -745,7 +745,7 @@
"x": 6, "x": 6,
"y": 7 "y": 7
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 30, "id": 30,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
@ -769,14 +769,14 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_useage_growth[365d])", "expr": "increase(immich_server_stats_usage_growth[1y])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/y", "timeFrom": "1y",
"title": "Yealy data growth", "title": "Yearly data growth",
"type": "stat" "type": "stat"
}, },
{ {
@ -837,7 +837,7 @@
} }
], ],
"timeFrom": "now/d", "timeFrom": "now/d",
"title": "daily photos growth", "title": "Daily photos growth",
"type": "stat" "type": "stat"
}, },
{ {
@ -897,8 +897,8 @@
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/w", "timeFrom": "1w",
"title": "weekly photos growth", "title": "Weekly photos growth",
"type": "stat" "type": "stat"
}, },
{ {
@ -1029,7 +1029,7 @@
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/M", "timeFrom": "1M",
"title": "Monthly photos growth", "title": "Monthly photos growth",
"type": "stat" "type": "stat"
}, },
@ -1086,14 +1086,14 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[52w])", "expr": "increase(immich_server_stats_photos_growth[1y])",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/y", "timeFrom": "1y",
"title": "yearly photos growth", "title": "Yearly photos growth",
"type": "stat" "type": "stat"
}, },
{ {
@ -1160,7 +1160,7 @@
"x": 0, "x": 0,
"y": 19 "y": 19
}, },
"hideTimeOverride": true, "hideTimeOverride": false,
"id": 22, "id": 22,
"options": { "options": {
"legend": { "legend": {
@ -1187,8 +1187,103 @@
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/M", "timeFrom": "1M",
"title": "Monthly Photos Growth", "title": "Photos Growth",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "amount of photos over time",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "right",
"axisSoftMin": 9000,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 30,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 1,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 26
},
"hideTimeOverride": false,
"id": 47,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_stats_photos_by_users",
"legendFormat": "{{firstName}}",
"range": true,
"refId": "A"
}
],
"timeFrom": "1y",
"title": "Photos Growth",
"type": "timeseries" "type": "timeseries"
}, },
{ {
@ -1206,8 +1301,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@ -1218,7 +1312,7 @@
"h": 4, "h": 4,
"w": 6, "w": 6,
"x": 0, "x": 0,
"y": 26 "y": 33
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 42, "id": 42,
@ -1251,7 +1345,7 @@
} }
], ],
"timeFrom": "now/d", "timeFrom": "now/d",
"title": "daily video growth", "title": "Daily video growth",
"type": "stat" "type": "stat"
}, },
{ {
@ -1269,8 +1363,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@ -1281,7 +1374,7 @@
"h": 4, "h": 4,
"w": 6, "w": 6,
"x": 6, "x": 6,
"y": 26 "y": 33
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 40, "id": 40,
@ -1313,8 +1406,8 @@
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/w", "timeFrom": "1w",
"title": "weekly videos growth", "title": "Weekly videos growth",
"type": "stat" "type": "stat"
}, },
{ {
@ -1342,7 +1435,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 26 "y": 33
}, },
"id": 6, "id": 6,
"options": { "options": {
@ -1381,7 +1474,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "videos", "title": "Videos",
"type": "piechart" "type": "piechart"
}, },
{ {
@ -1410,7 +1503,7 @@
"h": 4, "h": 4,
"w": 6, "w": 6,
"x": 0, "x": 0,
"y": 30 "y": 37
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 44, "id": 44,
@ -1428,7 +1521,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.4.3", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -1442,7 +1535,7 @@
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/M", "timeFrom": "1M",
"title": "Monthly videos growth", "title": "Monthly videos growth",
"type": "stat" "type": "stat"
}, },
@ -1472,7 +1565,7 @@
"h": 4, "h": 4,
"w": 6, "w": 6,
"x": 6, "x": 6,
"y": 30 "y": 37
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 46, "id": 46,
@ -1490,7 +1583,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.4.3", "pluginVersion": "10.0.2",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -1498,14 +1591,14 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[52w])\r\n", "expr": "increase(immich_server_stats_videos_growth[1y])\r\n",
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/y", "timeFrom": "1y",
"title": "Panel Title", "title": "Yearly video growth",
"type": "stat" "type": "stat"
}, },
{ {
@ -1568,7 +1661,7 @@
"h": 8, "h": 8,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 34 "y": 41
}, },
"id": 20, "id": 20,
"options": { "options": {
@ -1596,7 +1689,99 @@
"refId": "A" "refId": "A"
} }
], ],
"timeFrom": "now/M", "timeFrom": "1M",
"title": "Videos growth",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "amount of videos over time",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "right",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 30,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 49
},
"id": 48,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_stats_videos_by_users",
"legendFormat": "{{firstName}}",
"range": true,
"refId": "A"
}
],
"timeFrom": "1y",
"title": "Videos growth", "title": "Videos growth",
"type": "timeseries" "type": "timeseries"
} }
@ -1617,6 +1802,6 @@
"timezone": "", "timezone": "",
"title": "immich", "title": "immich",
"uid": "ZWWp3aa4k", "uid": "ZWWp3aa4k",
"version": 1, "version": 9,
"weekStart": "" "weekStart": ""
} }