Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics generation error for microservice #9759

Closed
1 of 3 tasks
zigarn opened this issue May 25, 2024 · 5 comments
Closed
1 of 3 tasks

Metrics generation error for microservice #9759

zigarn opened this issue May 25, 2024 · 5 comments
Labels
bug Something isn't working 🗄️server

Comments

@zigarn
Copy link

zigarn commented 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.

@zigarn
Copy link
Author

zigarn commented May 25, 2024

I think it's related to #9169

@michelheusschen michelheusschen added bug Something isn't working 🗄️server labels May 26, 2024
@michelheusschen
Copy link
Contributor

Can confirm that metrics are not working on v1.105.1, as far as I can tell it's caused by #9426

@bo0tzz
Copy link
Member

bo0tzz commented May 26, 2024

cc @zackpollard @mertalev

roschaefer added a commit to roschaefer/immich that referenced this issue Jun 10, 2024
@roschaefer
Copy link
Contributor

The microservices service is gone from the docker-compose.yml after #9551.

I was able to reproduce this on main just by following the documentation.

Here is the commit to reproduce it: roschaefer@7128923

@zackpollard
Copy link
Contributor

I'm taking a quick look into a fix for this to see if we can get it in before the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🗄️server
Projects
None yet
Development

No branches or pull requests

5 participants