Prometheus endpoint changed or broken with ShinyProxy 3.1?

We are using the Prometheus end-point of ShinyProxy to collect usage data.
Recently we upgraded from 3.0.1 to ShinyProxy 3.1.0. Now we get HTTP status 404
when doing at ‘GET’ on http://localhost:9090/actuator/prometheus. The logs claim:

java[1438688]: 2024-05-13T13:41:04.773+02:00 INFO 1438688 — [ main] e.o.c.stat.StatCollectorFactory : Enabled. Sending usage statistics to micrometer.

So I checked the docs (Usage Statistics | ShinyProxy) and tried so spot anything which might be wrong in application.yml but failed.
So I would like to ask this questions:

  • Do we need to update our configuration for a migration from 3.0.1 to 3.1.0?
  • Or might there be an open bug connected with our problem?

Any hints how to repair this are highly welcome.

Hi
The spring property to expose the endpoint has changed, this is mentioned in the changelog https://shinyproxy.io/downloads/ :

  • Note: when using Prometheus for Usage Statistics, you have to update the configuration: change the property management.metrics.export.prometheus.enabled: true to management.prometheus.metrics.export.enabled: trueA typical configuration should be changed from:
proxy:

  #  ...

  usage-stats-url: micrometer

management:
  metrics:
    export:
      prometheus:
        enabled: true

#  ...

to

proxy:

  #  ...

  usage-stats-url: micrometer

management:
  prometheus:
    metrics:
      export:
        enabled: true

#  ...

That I missed. Thanks - that fixed it.

1 Like