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.localby the openhab host.
Did you replace openhab.local in the file ?