fix(dashboard): show total photos & videos (#1)

This commit is contained in:
martin 2023-02-22 21:48:50 +01:00 committed by GitHub
parent 3b4e9143be
commit cf29943ebe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,10 +118,79 @@
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 9, "w": 5,
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"id": 13,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"first"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "immich_app_number_users",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Number of users",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "string"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 9,
"x": 5,
"y": 1
},
"id": 4, "id": 4,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@ -188,10 +257,10 @@
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 5, "w": 5,
"x": 9, "x": 14,
"y": 1 "y": 1
}, },
"id": 13, "id": 16,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "none", "graphMode": "none",
@ -215,7 +284,76 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "immich_app_number_users", "expr": "immich_app_total_photos",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Number of photos",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "string"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 5,
"x": 19,
"y": 1
},
"id": 17,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"first"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "immich_app_total_videos",
"format": "table", "format": "table",
"instant": true, "instant": true,
"legendFormat": "__auto", "legendFormat": "__auto",
@ -423,14 +561,17 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"lineInterpolation": "linear", "lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "scaleDistribution": {
"type": "linear" "type": "linear"
}, },
"showPoints": "auto", "showPoints": "never",
"spanNulls": false, "spanNulls": true,
"stacking": { "stacking": {
"group": "A", "group": "A",
"mode": "none" "mode": "none"
@ -485,9 +626,9 @@
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "immich_user_usage", "expr": "immich_user_usage",
"instant": true, "instant": false,
"legendFormat": "{{firstname}} {{lastname}}", "legendFormat": "{{firstname}} {{lastname}}",
"range": false, "range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -524,8 +665,8 @@
"scaleDistribution": { "scaleDistribution": {
"type": "linear" "type": "linear"
}, },
"showPoints": "auto", "showPoints": "never",
"spanNulls": false, "spanNulls": true,
"stacking": { "stacking": {
"group": "A", "group": "A",
"mode": "none" "mode": "none"
@ -735,13 +876,13 @@
"list": [] "list": []
}, },
"time": { "time": {
"from": "now-6h", "from": "now-15m",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Immich", "title": "Immich",
"uid": "9QXCv3AVk", "uid": "9QXCv3AVk",
"version": 8, "version": 9,
"weekStart": "" "weekStart": ""
} }