refactor: update grafana dashboard (#2)

* grafana/dashboard.json aktualisiert

rename to "number of videos"
add refresh and extend timestamp

* README.md aktualisiert

Rename IMMICH_URL to IMMICH_BASE_URL

---------

Co-authored-by: Simon Rieger <simono41@noreply.localhost>
This commit is contained in:
Simon Rieger 2023-10-18 23:29:56 +02:00 committed by GitHub
parent c880ba2e36
commit 4cbc006e84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 15 deletions

View file

@ -19,7 +19,7 @@ Create an API key in your Immich settings and set `IMMICH_API_KEY` to is value.
```sh ```sh
docker run --name=immich-exporter \ docker run --name=immich-exporter \
-e IMMICH_URL=http://192.168.1.10:8080 \ -e IMMICH_BASE_URL=http://192.168.1.10:8080 \
-e IMMICH_API_KEY=<your_api_key> \ -e IMMICH_API_KEY=<your_api_key> \
-p 8090:8090 \ -p 8090:8090 \
martabal/immich-exporter martabal/immich-exporter
@ -34,7 +34,7 @@ services:
image: martabal/immich-exporter:latest image: martabal/immich-exporter:latest
container_name: immich-exporter container_name: immich-exporter
environment: environment:
- IMMICH_URL=http://192.168.1.10:8080 - IMMICH_BASE_URL=http://192.168.1.10:8080
- IMMICH_API_KEY=<your_api_key> - IMMICH_API_KEY=<your_api_key>
ports: ports:
- 8090:8090 - 8090:8090

View file

@ -15,7 +15,7 @@
"type": "grafana", "type": "grafana",
"id": "grafana", "id": "grafana",
"name": "Grafana", "name": "Grafana",
"version": "9.3.6" "version": "10.1.5"
}, },
{ {
"type": "panel", "type": "panel",
@ -137,7 +137,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.1.5",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -206,7 +206,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.1.5",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -275,7 +275,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.1.5",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -344,7 +344,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.1.5",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -361,7 +361,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "Number of users", "title": "Number of videos",
"type": "stat" "type": "stat"
}, },
{ {
@ -376,7 +376,9 @@
}, },
"custom": { "custom": {
"align": "auto", "align": "auto",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"filterable": false, "filterable": false,
"inspect": false "inspect": false
}, },
@ -502,7 +504,9 @@
}, },
"id": 15, "id": 15,
"options": { "options": {
"cellHeight": "sm",
"footer": { "footer": {
"countRows": false,
"fields": "", "fields": "",
"reducer": [ "reducer": [
"sum" "sum"
@ -517,7 +521,7 @@
} }
] ]
}, },
"pluginVersion": "9.3.6", "pluginVersion": "10.1.5",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -561,6 +565,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "smooth", "lineInterpolation": "smooth",
"lineStyle": { "lineStyle": {
"fill": "solid" "fill": "solid"
@ -659,6 +664,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -868,21 +874,21 @@
"type": "piechart" "type": "piechart"
} }
], ],
"refresh": false, "refresh": "5m",
"schemaVersion": 37, "schemaVersion": 38,
"style": "dark", "style": "dark",
"tags": [], "tags": [],
"templating": { "templating": {
"list": [] "list": []
}, },
"time": { "time": {
"from": "now-15m", "from": "now-24h",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Immich", "title": "Immich Go",
"uid": "9QXCv3AVk", "uid": "9QXCv3AVk",
"version": 9, "version": 4,
"weekStart": "" "weekStart": ""
} }