diff --git a/Dockerfile b/Dockerfile
index a2c1b72..f58eb14 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,7 +14,7 @@ RUN pip3 install .
ENV IMMICH_API_TOKEN=""
ENV IMMICH_HOST=""
-ENV IMMICH_PORT=""
+ENV IMMICH_PORT="8080"
#has to be EXPORT_PORT 8000 or else it does not work, same applies to the env file
ENV EXPORTER_PORT="8000"
ENV EXPORTER_LOG_LEVEL="INFO"
diff --git a/README.md b/README.md
index 6a593d3..1639c24 100644
--- a/README.md
+++ b/README.md
@@ -5,26 +5,14 @@ A prometheus exporter for Immich. Get metrics from a server and offers them in a
## How to use it
-You can install this exporter with the following command:
-
-```bash
-pip3 install prometheus-qbittorrent-exporter
-```
-
-Then you can run it with
+Here is an example docker run command
```
-immich-exporter
-```
-
-Another option is to run it in a docker container. Here is an example docker run command
-
-```
-docker run -e IMMICH_PORT=8010 -e IMMICH_HOST=192.168.178.1 -p 8000:8000 friendlyfriend/prometheus-immich-exporter
+docker run -e IMMICH_PORT=8080 -e IMMICH_HOST=192.168.178.1 -e IMMICH_API_TOKEN=TOKEN -p 8000:8000 friendlyfriend/prometheus-immich-exporter
```
Add this to your prometheus.yml
```
- - job_name: "qbittorrent_exporter"
+ - job_name: "Immich_exporter"
static_configs:
- targets: ['yourimmichexporter:port']
```
@@ -32,8 +20,9 @@ The application reads configuration using environment variables:
| Environment variable | Default | Description |
|----------------------|----------|----------------------------------------------------|
-| `IMMICH_HOST` | | immich server hostname |
-| `IMMICH_PORT` | | immich server port |
+| `IMMICH_HOST` | | Immich proxy url |
+| `IMMICH_PORT` | `8080` | Immich proxy port |
+| `IMMICH_API_TOKEN` | | Immich API token, created from Immich dashboard |
| `EXPORTER_PORT` | `8000` | Exporter listening port |
| `EXPORTER_LOG_LEVEL` | `INFO` | Log level. One of: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL` |
| `METRICS_PREFIX` | `immich` | Prefix to add to all the metrics |
diff --git a/grafana/README.md b/grafana/README.md
index 8663e06..c31b4c1 100644
--- a/grafana/README.md
+++ b/grafana/README.md
@@ -2,7 +2,7 @@
## 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
diff --git a/grafana/dashboard-immich.json b/grafana/dashboard-immich.json
index 5527ad4..a780227 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": "10.0.2"
+ },
+ {
+ "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": {
@@ -75,12 +118,12 @@
},
"textMode": "name"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"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": {
@@ -142,12 +185,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_stats_user_count",
@@ -156,13 +199,13 @@
"refId": "A"
}
],
- "title": "user count",
+ "title": "User count",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -204,12 +247,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(immich_server_stats_usage_by_users)",
@@ -218,13 +261,13 @@
"refId": "A"
}
],
- "title": "disk space used by Immich",
+ "title": "Disk space used by Immich",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -266,12 +309,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_info_totalDiskSize",
@@ -280,13 +323,13 @@
"refId": "A"
}
],
- "title": "total disk size",
+ "title": "Total disk size",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -328,12 +371,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_info_diskUse",
@@ -342,13 +385,13 @@
"refId": "A"
}
],
- "title": "total disk size usage",
+ "title": "Total disk size usage",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -390,12 +433,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
@@ -408,13 +451,13 @@
"refId": "A"
}
],
- "title": "remaining disk size",
+ "title": "Remaining disk size",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -441,7 +484,7 @@
"x": 0,
"y": 3
},
- "hideTimeOverride": true,
+ "hideTimeOverride": false,
"id": 24,
"options": {
"colorMode": "background",
@@ -457,16 +500,16 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
- "expr": "increase(immich_server_stats_usage_growth[24h])",
+ "expr": "increase(immich_server_stats_usage_growth[1d])",
"instant": false,
"legendFormat": "__auto",
"range": true,
@@ -480,7 +523,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -507,7 +550,7 @@
"x": 6,
"y": 3
},
- "hideTimeOverride": true,
+ "hideTimeOverride": false,
"id": 26,
"options": {
"colorMode": "background",
@@ -523,28 +566,28 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
- "expr": "increase(immich_server_stats_useage_growth[7d])",
+ "expr": "increase(immich_server_stats_usage_growth[1w])",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
- "timeFrom": "now/w",
+ "timeFrom": "1w",
"title": "Weekly data growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -596,7 +639,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_stats_usage_by_users",
@@ -605,13 +648,13 @@
"refId": "A"
}
],
- "title": "disk usage by user",
+ "title": "Disk usage by user",
"type": "piechart"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -638,7 +681,7 @@
"x": 0,
"y": 7
},
- "hideTimeOverride": true,
+ "hideTimeOverride": false,
"id": 28,
"options": {
"colorMode": "background",
@@ -654,28 +697,28 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
- "expr": "increase(immich_server_stats_usage_growth[30h])",
+ "expr": "increase(immich_server_stats_usage_growth[4w])",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
- "timeFrom": "now/M",
+ "timeFrom": "1M",
"title": "Monthly data growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -702,7 +745,7 @@
"x": 6,
"y": 7
},
- "hideTimeOverride": true,
+ "hideTimeOverride": false,
"id": 30,
"options": {
"colorMode": "background",
@@ -718,28 +761,28 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
- "expr": "increase(immich_server_stats_useage_growth[365d])",
+ "expr": "increase(immich_server_stats_usage_growth[1y])",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
- "timeFrom": "now/y",
- "title": "Yealy data growth",
+ "timeFrom": "1y",
+ "title": "Yearly data growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -779,12 +822,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[24h])",
@@ -794,13 +837,13 @@
}
],
"timeFrom": "now/d",
- "title": "daily photos growth",
+ "title": "Daily photos growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -840,12 +883,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[7d])",
@@ -854,14 +897,14 @@
"refId": "A"
}
],
- "timeFrom": "now/w",
- "title": "weekly photos growth",
+ "timeFrom": "1w",
+ "title": "Weekly photos growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -913,7 +956,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
@@ -930,7 +973,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -972,12 +1015,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[4w])",
@@ -986,14 +1029,14 @@
"refId": "A"
}
],
- "timeFrom": "now/M",
+ "timeFrom": "1M",
"title": "Monthly photos growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -1035,28 +1078,28 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
- "expr": "increase(immich_server_stats_photos_growth[52w])",
+ "expr": "increase(immich_server_stats_photos_growth[1y])",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
- "timeFrom": "now/y",
- "title": "yearly photos growth",
+ "timeFrom": "1y",
+ "title": "Yearly photos growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"description": "amount of photos over time",
"fieldConfig": {
@@ -1117,7 +1160,7 @@
"x": 0,
"y": 19
},
- "hideTimeOverride": true,
+ "hideTimeOverride": false,
"id": 22,
"options": {
"legend": {
@@ -1135,7 +1178,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_stats_photos_by_users",
@@ -1144,19 +1187,54 @@
"refId": "A"
}
],
- "timeFrom": "now/M",
- "title": "Monthly Photos Growth",
+ "timeFrom": "1M",
+ "title": "Photos Growth",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
+ "description": "amount of photos over time",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "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": {
@@ -1171,11 +1249,70 @@
},
"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"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "${DS_PROMETHEUS}"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
- "y": 26
+ "y": 33
},
"hideTimeOverride": true,
"id": 42,
@@ -1193,12 +1330,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1d])",
@@ -1208,13 +1345,13 @@
}
],
"timeFrom": "now/d",
- "title": "daily video growth",
+ "title": "Daily video growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -1226,8 +1363,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
}
]
}
@@ -1238,7 +1374,7 @@
"h": 4,
"w": 6,
"x": 6,
- "y": 26
+ "y": 33
},
"hideTimeOverride": true,
"id": 40,
@@ -1256,12 +1392,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1w])",
@@ -1270,14 +1406,14 @@
"refId": "A"
}
],
- "timeFrom": "now/w",
- "title": "weekly videos growth",
+ "timeFrom": "1w",
+ "title": "Weekly videos growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -1299,7 +1435,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 26
+ "y": 33
},
"id": 6,
"options": {
@@ -1329,7 +1465,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_stats_videos_by_users",
@@ -1338,13 +1474,13 @@
"refId": "A"
}
],
- "title": "videos",
+ "title": "Videos",
"type": "piechart"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -1356,8 +1492,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
}
]
}
@@ -1368,7 +1503,7 @@
"h": 4,
"w": 6,
"x": 0,
- "y": 30
+ "y": 37
},
"hideTimeOverride": true,
"id": 44,
@@ -1386,12 +1521,12 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[4w])\r\n",
@@ -1400,14 +1535,14 @@
"refId": "A"
}
],
- "timeFrom": "now/M",
+ "timeFrom": "1M",
"title": "Monthly videos growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@@ -1419,8 +1554,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
}
]
}
@@ -1431,7 +1565,7 @@
"h": 4,
"w": 6,
"x": 6,
- "y": 30
+ "y": 37
},
"hideTimeOverride": true,
"id": 46,
@@ -1449,28 +1583,28 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.4.3",
+ "pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
- "expr": "increase(immich_server_stats_videos_growth[52w])\r\n",
+ "expr": "increase(immich_server_stats_videos_growth[1y])\r\n",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
- "timeFrom": "now/y",
- "title": "Panel Title",
+ "timeFrom": "1y",
+ "title": "Yearly video growth",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"description": "amount of videos over time",
"fieldConfig": {
@@ -1516,8 +1650,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
}
]
}
@@ -1528,7 +1661,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 34
+ "y": 41
},
"id": 20,
"options": {
@@ -1547,7 +1680,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "o-nLTb0Vz"
+ "uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "immich_server_stats_videos_by_users",
@@ -1556,7 +1689,99 @@
"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",
"type": "timeseries"
}
diff --git a/unraid/prometheus-immich-exporter.xml b/unraid/prometheus-immich-exporter.xml
index f04cba9..706bf0e 100644
--- a/unraid/prometheus-immich-exporter.xml
+++ b/unraid/prometheus-immich-exporter.xml
@@ -21,8 +21,8 @@
If you like my work, consider supporting me.
https://www.paypal.com/donate/?hosted_button_id=DPDKED3T3BFV8
- 8028
+ 8000
-
-
+
+
\ No newline at end of file