Metrics generation error for microservice #3275

Closed
opened 2026-02-05 08:08:09 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @zigarn on GitHub (May 25, 2024).

The bug

When calling the metrics endpoint on microservices, instead of metrics we get

# failed to export metrics: Error: MetricReader is not bound to a MetricProducer

The OS that Immich Server is running on

Ubuntu 24.04

Version of Immich Server

v1.105.1

Version of Immich Mobile App

N/A

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

# Immich provided one + this compose.override.yml

services:
  immich-server:
    volumes:
      - ${EXTERNAL_PATH}:/usr/src/app/external:ro
    ports: !override
      - 127.0.0.1:2283:3001
      - 127.0.0.1:2284:8081

  immich-microservices:
    volumes:
      - ${EXTERNAL_PATH}:/usr/src/app/external:ro
    ports:
      - 127.0.0.1:2285:8081

networks:
  default:
    enable_ipv6: true
    ipam:
      config:
        - subnet: 2001:0db8::/112

Your .env content

# Immich provided one +

# Custom
###################################################################################
# External library path
EXTERNAL_PATH=/home/user/Images/Photos

# Connection secret for postgres
DB_PASSWORD='...'

# Monitoring
IMMICH_METRICS=true

Reproduction steps

1. `curl http://localhost:2285/metrics`
2. Get no metrics but error message

Relevant log output

Nothing about metrics in the logs

Additional information

Metrics endpoint for server is OK.

Originally created by @zigarn on GitHub (May 25, 2024). ### The bug When calling the metrics endpoint on microservices, instead of metrics we get ``` # failed to export metrics: Error: MetricReader is not bound to a MetricProducer ``` ### The OS that Immich Server is running on Ubuntu 24.04 ### Version of Immich Server v1.105.1 ### Version of Immich Mobile App N/A ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML # Immich provided one + this compose.override.yml services: immich-server: volumes: - ${EXTERNAL_PATH}:/usr/src/app/external:ro ports: !override - 127.0.0.1:2283:3001 - 127.0.0.1:2284:8081 immich-microservices: volumes: - ${EXTERNAL_PATH}:/usr/src/app/external:ro ports: - 127.0.0.1:2285:8081 networks: default: enable_ipv6: true ipam: config: - subnet: 2001:0db8::/112 ``` ### Your .env content ```Shell # Immich provided one + # Custom ################################################################################### # External library path EXTERNAL_PATH=/home/user/Images/Photos # Connection secret for postgres DB_PASSWORD='...' # Monitoring IMMICH_METRICS=true ``` ### Reproduction steps ```bash 1. `curl http://localhost:2285/metrics` 2. Get no metrics but error message ``` ### Relevant log output ```shell Nothing about metrics in the logs ``` ### Additional information Metrics endpoint for server is OK.
OVERLORD added the 🗄️server label 2026-02-05 08:08:09 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#3275