Openhab.host.name:8080/rest/metrics/prometheus not available

Hello,

I installed the metrics integration and it is installed but I get an 404 when I go to openhab.host.name:8080/rest/metrics/prometheus …

Do I need to configure anything else?

here is my addons.cfg

# A comma-separated list of miscellaneous services to install (e.g. "misc = openhabcloud")
misc = openhabcloud,metrics

Quoted from the docs:

/etc/prometheus/prometheus.yml):

scrape_configs:
  - job_name: 'openhab'
    scrape_interval: 1m
    scheme: http
    metrics_path: /rest/metrics/prometheus
    static_configs:
    - targets:
      - 'openhab.local:8080'

Replace openhab.local by the openhab host.

Did you replace openhab.local in the file ?

of course…

here is also http://xxxx:8008/rest/ not listed

{"version":"5","locale":"de_DE","measurementSystem":"SI","runtimeInfo":{"version":"3.4.2","buildString":"Release Build"},"links":[{"type":"addons","url":"http://xxx:8008/rest/addons"},{"type":"templates","url":"http://xxx:8008/rest/templates"},{"type":"auth","url":"http://xxx:8008/rest/auth"},{"type":"rules","url":"http://xxx:8008/rest/rules"},{"type":"voice","url":"http://xxx:8008/rest/voice"},{"type":"ui","url":"http://xxx:8008/rest/ui"},{"type":"channel-types","url":"http://xxx:8008/rest/channel-types"},{"type":"discovery","url":"http://xxx:8008/rest/discovery"},{"type":"spec","url":"http://xxx:8008/rest/spec"},{"type":"events","url":"http://xxx:8008/rest/events"},{"type":"audio","url":"http://xxx:8008/rest/audio"},{"type":"uuid","url":"http://xxx:8008/rest/uuid"},{"type":"links","url":"http://xxx:8008/rest/links"},{"type":"things","url":"http://xxx:8008/rest/things"},{"type":"persistence","url":"http://xxx:8008/rest/persistence"},{"type":"profile-types","url":"http://xxx:8008/rest/profile-types"},{"type":"module-types","url":"http://xxx:8008/rest/module-types"},{"type":"sitemaps","url":"http://xxx:8008/rest/sitemaps"},{"type":"logging","url":"http://xxx:8008/rest/logging"},{"type":"transformations","url":"http://xxx:8008/rest/transformations"},{"type":"inbox","url":"http://xxx:8008/rest/inbox"},{"type":"systeminfo","url":"http://xxx:8008/rest/systeminfo"},{"type":"iconsets","url":"http://xxx:8008/rest/iconsets"},{"type":"bindings","url":"http://xxx:8008/rest/bindings"},{"type":"config-descriptions","url":"http://xxx:8008/rest/config-descriptions"},{"type":"thing-types","url":"http://xxx:8008/rest/thing-types"},{"type":"services","url":"http://xxx:8008/rest/services"},{"type":"items","url":"http://xxx:8008/rest/items"}]}

The bundle status always after a restart

Resolved │  80 │ 3.4.2                  │ org.openhab.io.metrics

Do I need to activate it somehow?