No description
Find a file
martin 3b4e9143be
up version release
Signed-off-by: martin <martin.labat92@gmail.com>
2023-02-19 12:17:31 +01:00
.github/workflows refactor: remove main.go 2023-02-17 20:22:56 +01:00
grafana fix: correct metric name for immich version 2023-02-19 12:16:32 +01:00
img initial commit 2023-02-10 22:47:58 +01:00
src fix: correct metric name for immich version 2023-02-19 12:16:32 +01:00
.dockerignore initial commit 2023-02-10 22:47:58 +01:00
.env.example initial commit 2023-02-10 22:47:58 +01:00
.gitignore initial commit 2023-02-10 22:47:58 +01:00
Dockerfile feat: use package.json to show project infos 2023-02-13 18:18:09 +01:00
go.mod wip 2023-02-12 23:36:01 +01:00
go.sum wip 2023-02-12 23:36:01 +01:00
LICENSE chore: add license 2023-02-18 19:29:07 +01:00
package.json up version release 2023-02-19 12:17:31 +01:00
README.md refactor: remove main.go 2023-02-17 20:20:36 +01:00

immich-exporter

Publish Release

 

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

Run it

Docker-cli (click here for more info)

docker run --name=immich-exporter \
    -e IMMICH_URL=http://192.168.1.10:8080 \
    -e IMMICH_PASSWORD='<your_password>' \
    -e IMMICH_USERNAME=admin \
    -p 8090:8090 \
    martabal/immich-exporter

Docker-compose

version: "2.1"
services:
  immich:
    image: martabal/immich-exporter:latest
    container_name: immich-exporter
    environment:
      - IMMICH_URL=http://192.168.1.10:8080
      - IMMICH_PASSWORD='<your_password>'
      - IMMICH_USERNAME=admin
    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_USERNAME Immich username
-e IMMICH_PASSWORD Immich password
-e IMMICH_BASE_URL Immich base URL

Arguments

Arguments Function
-e Use a .env file containing environment variables (.env file must be placed in the same directory)