No description
Find a file
dependabot[bot] edd88f3883
chore(deps): bump docker/setup-buildx-action from 2 to 3 (#3)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-19 20:23:08 +02:00
.github chore(deps): bump docker/setup-buildx-action from 2 to 3 (#3) 2023-10-19 20:23:08 +02:00
grafana refactor: update grafana dashboard (#2) 2023-10-18 23:29:56 +02:00
img initial commit 2023-02-10 22:47:58 +01:00
src refactor: simplify data registration 2023-10-19 20:19:59 +02:00
.dockerignore chore: update dependencies 2023-07-06 12:05:57 +02:00
.env.example feat: up version 2023-06-21 23:29:41 +02:00
.gitignore initial commit 2023-02-10 22:47:58 +01:00
Dockerfile refactor: simplify data registration 2023-10-19 20:19:59 +02:00
go.mod refactor: simplify data registration 2023-10-19 20:19:59 +02:00
go.sum refactor: simplify data registration 2023-10-19 20:19:59 +02:00
LICENSE chore: update dependencies 2023-07-06 12:05:57 +02:00
package.json refactor: simplify data registration 2023-10-19 20:19:59 +02:00
README.md refactor: update grafana dashboard (#2) 2023-10-18 23:29:56 +02:00

immich-exporter

Publish Release Build Test

 

This app is a Prometheus exporter for immich.
This app is made to be integrated with the immich-grafana-dashboard

Run it

Create an API key in your Immich settings and set IMMICH_API_KEY to is value.

Docker-cli (click here for more info)

docker run --name=immich-exporter \
    -e IMMICH_BASE_URL=http://192.168.1.10:8080 \
    -e IMMICH_API_KEY=<your_api_key> \
    -p 8090:8090 \
    martabal/immich-exporter

Docker-compose

version: "2.1"
services:
  immich:
    image: martabal/immich-exporter:latest
    container_name: immich-exporter
    environment:
      - IMMICH_BASE_URL=http://192.168.1.10:8080
      - IMMICH_API_KEY=<your_api_key>
    ports:
      - 8090:8090
    restart: unless-stopped

Without docker

git clone https://github.com/martabal/immich-exporter.git
cd immich-exporter/
go get -d -v
cd src
go build -o ./immich-exporter
./immich-exporter

If you want to use an .env file, edit .env.example to match your setup, rename it .env then run it with :

./immich-exporter -e

Parameters

Environment variables

Parameters Function
-p 8090 Webservice port
-e IMMICH_BASE_URL Immich base URL
-e IMMICH_API_KEY Immich API key
-e EXPORTER_PORT qbittorrent export port (optional)
-e LOG_LEVEL App log level (TRACE, DEBUG, INFO, WARN and ERROR)

Arguments

Arguments Function
-e If qbittorrent-exporter detects a .env file in the same directory, the values in the .env will be used, -e forces the usage of environment variables

Setup

Add the target to your scrape_configs in your prometheus.yml file of your Prometheus instance.

scrape_configs:
  - job_name: 'immich'
    static_configs:
      - targets: [ '<your_ip_address>:8090' ]