Update dashboard to default to datasource named "Prometheus" and not with a specific ID.

Updated some translations/naming.
This commit is contained in:
Vegard Fladby 2023-07-20 08:51:53 +02:00
parent f5f3926e0f
commit 9d5a7c0bef
3 changed files with 48 additions and 186 deletions

View file

@ -24,7 +24,7 @@ docker run -e IMMICH_PORT=8010 -e IMMICH_HOST=192.168.178.1 -p 8000:8000 friendl
``` ```
Add this to your prometheus.yml Add this to your prometheus.yml
``` ```
- job_name: "qbittorrent_exporter" - job_name: "immich_exporter"
static_configs: static_configs:
- targets: ['yourimmichexporter:port'] - targets: ['yourimmichexporter:port']
``` ```

View file

@ -2,7 +2,7 @@
## Import ## Import
To import the dashboard into your grafana, download the [dashboard.json](https://raw.githubusercontent.com/friendlyFriend/immich-qbittorrent-exporter/master/grafana/dashboard.json) file and import it into your server. Select your prometheus instance and that should be all. To import the dashboard into your grafana, download the [dashboard.json](https://github.com/friendlyFriend4000/prometheus-immich-exporter/raw/master/grafana/dashboard-immich.json) file and import it into your server. Select your prometheus instance and that should be all.
The graphs can be customized in their relative time. Mind that it takes time to populate them if you set relative time to monthly or yearly The graphs can be customized in their relative time. Mind that it takes time to populate them if you set relative time to monthly or yearly

View file

@ -29,10 +29,7 @@
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -78,10 +75,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "immich_server_info_version_number", "expr": "immich_server_info_version_number",
@ -95,10 +89,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -145,10 +136,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_user_count", "expr": "immich_server_stats_user_count",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -160,10 +148,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -207,10 +192,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "sum(immich_server_stats_usage_by_users)", "expr": "sum(immich_server_stats_usage_by_users)",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -222,10 +204,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -269,10 +248,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_info_totalDiskSize", "expr": "immich_server_info_totalDiskSize",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -284,10 +260,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -331,10 +304,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_info_diskUse", "expr": "immich_server_info_diskUse",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -346,10 +316,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -393,10 +360,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "100 - immich_server_info_diskUsagePercentage", "expr": "100 - immich_server_info_diskUsagePercentage",
@ -412,10 +376,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -460,10 +421,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "increase(immich_server_stats_usage_growth[24h])", "expr": "increase(immich_server_stats_usage_growth[24h])",
@ -478,10 +436,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -526,10 +481,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_useage_growth[7d])", "expr": "increase(immich_server_stats_useage_growth[7d])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -542,10 +494,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -594,10 +543,7 @@
}, },
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_usage_by_users", "expr": "immich_server_stats_usage_by_users",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
@ -609,10 +555,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -657,10 +600,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_usage_growth[30h])", "expr": "increase(immich_server_stats_usage_growth[30h])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -673,10 +613,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -721,10 +658,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_useage_growth[365d])", "expr": "increase(immich_server_stats_useage_growth[365d])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -737,10 +671,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"mappings": [], "mappings": [],
@ -782,10 +713,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[24h])", "expr": "increase(immich_server_stats_photos_growth[24h])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -798,10 +726,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"mappings": [], "mappings": [],
@ -843,10 +768,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[7d])", "expr": "increase(immich_server_stats_photos_growth[7d])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -859,10 +781,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -911,10 +830,7 @@
}, },
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "immich_server_stats_photos_by_users", "expr": "immich_server_stats_photos_by_users",
@ -928,10 +844,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -975,10 +888,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[4w])", "expr": "increase(immich_server_stats_photos_growth[4w])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -991,10 +901,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1038,10 +945,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[52w])", "expr": "increase(immich_server_stats_photos_growth[52w])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -1054,10 +958,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"description": "amount of photos over time", "description": "amount of photos over time",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1133,10 +1034,7 @@
}, },
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_photos_by_users", "expr": "immich_server_stats_photos_by_users",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
@ -1149,10 +1047,7 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1196,10 +1091,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1d])", "expr": "increase(immich_server_stats_videos_growth[1d])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -1212,10 +1104,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1259,10 +1148,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1w])", "expr": "increase(immich_server_stats_videos_growth[1w])",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -1275,10 +1161,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1327,10 +1210,7 @@
}, },
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_videos_by_users", "expr": "immich_server_stats_videos_by_users",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",
@ -1342,10 +1222,7 @@
"type": "piechart" "type": "piechart"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1389,10 +1266,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[4w])\r\n", "expr": "increase(immich_server_stats_videos_growth[4w])\r\n",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -1405,10 +1279,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@ -1452,10 +1323,7 @@
"pluginVersion": "9.4.3", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[52w])\r\n", "expr": "increase(immich_server_stats_videos_growth[52w])\r\n",
"legendFormat": "__auto", "legendFormat": "__auto",
@ -1468,10 +1336,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"description": "amount of videos over time", "description": "amount of videos over time",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1545,10 +1410,7 @@
}, },
"targets": [ "targets": [
{ {
"datasource": { "datasource": "Prometheus",
"type": "prometheus",
"uid": "o-nLTb0Vz"
},
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_videos_by_users", "expr": "immich_server_stats_videos_by_users",
"legendFormat": "{{firstName}}", "legendFormat": "{{firstName}}",