# Prometheus endpoint changed or broken with ShinyProxy 3.1?

**URL:** <https://support.openanalytics.eu/t/prometheus-endpoint-changed-or-broken-with-shinyproxy-3-1/2765>\
**Category:** ShinyProxy\
**Created:** [May 16, 2024, 1:11pm UTC](https://support.openanalytics.eu/t/prometheus-endpoint-changed-or-broken-with-shinyproxy-3-1/2765 "2024-05-16T13:11:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaraldWilhelmi](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/haraldwilhelmi/32/959_2.png) [@HaraldWilhelmi](https://support.openanalytics.eu/u/HaraldWilhelmi)\
**Post date:** [May 16, 2024, 1:11pm UTC](https://support.openanalytics.eu/t/prometheus-endpoint-changed-or-broken-with-shinyproxy-3-1/2765/1 "2024-05-16T13:11:29Z")

</div>

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](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](https://www.shinyproxy.io/documentation/usage-statistics/#micrometer-prometheus)) 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.

---

<div class="post-metadata">

**Author:** ![tdekoninck](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/tdekoninck/32/1079_2.png) [@tdekoninck](https://support.openanalytics.eu/u/tdekoninck)\
**Post date:** [May 17, 2024, 8:57am UTC](https://support.openanalytics.eu/t/prometheus-endpoint-changed-or-broken-with-shinyproxy-3-1/2765/2 "2024-05-17T08:57:16Z")

</div>

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

- Note: when using Prometheus for [Usage Statistics](https://shinyproxy.io/documentation/usage-statistics#micrometer-prometheus), you have to update the configuration: change the property `management.metrics.export.prometheus.enabled: true` to `management.prometheus.metrics.export.enabled: true`A typical configuration should be changed from:

```auto
proxy:

  # ...

  usage-stats-url: micrometer

management:
  metrics:
    export:
      prometheus:
        enabled: true

# ...

```

to

```auto
proxy:

  # ...

  usage-stats-url: micrometer

management:
  prometheus:
    metrics:
      export:
        enabled: true

# ...

```

---

<div class="post-metadata">

**Author:** ![HaraldWilhelmi](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/haraldwilhelmi/32/959_2.png) [@HaraldWilhelmi](https://support.openanalytics.eu/u/HaraldWilhelmi)\
**Post date:** [May 17, 2024, 11:13am UTC](https://support.openanalytics.eu/t/prometheus-endpoint-changed-or-broken-with-shinyproxy-3-1/2765/3 "2024-05-17T11:13:53Z")

</div>

That I missed. Thanks - that fixed it.
