No description
Find a file
Vegard Fladby 99c9b84f40 Further optimization of Dashboard:
- Formated text to make it consistent
- Changed hours/days/month/year to use 1d/1w/4w/1y
- Changed Weekly data growth to use 1w to show the last 7 days.
- Changed Monthly data growth to use 4w to show the last 4 weeks.
- Changed Yearly data growth to use 1y to show the last 1y.
- Added Photos growth last year visual
- Added Videos growth last year visual
- Corrected some spelling errors in 'expr' so that the values are now calculated correctly
2023-07-20 20:14:28 +02:00
.github/workflows 1.0.0 2023-03-14 22:33:47 -07:00
grafana Further optimization of Dashboard: 2023-07-20 20:14:28 +02:00
immich_exporter fixed api headers requirement 2023-07-19 22:05:08 -07:00
unraid Further edit of readme 2023-07-20 18:15:05 +02:00
.gitignore Initial commit 2020-09-29 10:19:21 +02:00
Dockerfile Further edit of readme 2023-07-20 18:15:05 +02:00
LICENSE Initial commit 2020-09-29 10:19:21 +02:00
README.md Further edit of readme 2023-07-20 18:15:05 +02:00
setup.cfg First version 2020-09-29 11:12:22 +02:00
setup.py retrying unsuccessful docker start 2023-05-29 19:17:30 -07:00

Prometheus Immich exporter

A prometheus exporter for Immich. Get metrics from a server and offers them in a prometheus format.

How to use it

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 friendlyfriend/prometheus-immich-exporter

Add this to your prometheus.yml

  - job_name: "Immich_exporter"
    static_configs:
        - targets: ['yourimmichexporter:port']

The application reads configuration using environment variables:

Environment variable Default Description
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

Metrics

These are the metrics this program exports, assuming the METRICS_PREFIX is immich:

metric name description
immich_server_info_version_number pings server and passes version number with the use of labels={version}
immich_server_info_diskAvailable available space on disk
immich_server_info_totalDiskSize total disk size
immich_server_info_diskUse disk space used by your system
immich_server_info_diskUsagePercentage same as above but in percentage
metric name description
immich_server_stats_user_count number of users signed up
immich_server_stats_photos_by_users array of users and their amount of photos
immich_server_stats_photos_growth sum of photos of all users
immich_server_stats_videos_by_users array of users and their amount of videos
immich_server_stats_videos_growth sum of all videos of all users
immich_server_stats_usage_by_users the disk space each user uses
immich_server_stats_usage_growth sum of disk space taken up by all users

Screenshot

More info

License

This software is released under the GPLv3 license.