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

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 ?