mirror of
https://github.com/MaxenceG2M/prometheus-immich-exporter.git
synced 2025-12-08 14:53:23 +00:00
-support for 1.1.0
-adapted for unraid
This commit is contained in:
@@ -12,8 +12,8 @@ WORKDIR /code
|
||||
COPY . .
|
||||
RUN pip3 install --break-system-packages .
|
||||
|
||||
ENV IMMICH_API_TOKEN=""
|
||||
ENV IMMICH_HOST=""
|
||||
ENV IMMICH_API_TOKEN="yourimmichtokenhere"
|
||||
ENV IMMICH_HOST="host/ip"
|
||||
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"
|
||||
|
||||
@@ -8,15 +8,15 @@ A prometheus exporter for Immich. Get metrics from a server and offers them in a
|
||||
Here is an example docker run command
|
||||
|
||||
```
|
||||
docker run -e IMMICH_PORT=8080 -e IMMICH_HOST=192.168.178.1 -e IMMICH_API_TOKEN=<TOKEN> -p 8000:8000 alexf007/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
|
||||
```
|
||||
Or you can add the following to your immich docker-compose.yaml
|
||||
```
|
||||
immich-exporter:
|
||||
image: alexf007/prometheus-immich-exporter
|
||||
image: friendlyfriend/prometheus-immich-exporter
|
||||
container_name: immich_exporter
|
||||
environment:
|
||||
- IMMICH_PORT=3001
|
||||
- IMMICH_PORT=2283
|
||||
- IMMICH_HOST=immich-server
|
||||
- IMMICH_API_TOKEN=<TOKEN>
|
||||
ports:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Import
|
||||
|
||||
To import the dashboard into your grafana, download the [dashboard.json](./dashboard-immich.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](./dashboard-immich_1_2_0.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
|
||||
|
||||
|
||||
1844
grafana/dashboard-immich_1_1_0.json
Normal file
1844
grafana/dashboard-immich_1_1_0.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user