baaym / openhab2-prometheus-exporter

Prometheus Exporter for OpenHAB 2
MIT License
4 stars 7 forks source link

OpenHAB 2 Prometheus Exporter

A simple and straightforward script for exposing OpenHAB 2 items as Prometheus metrics. Note that the steps below have been based on a Raspberry PI 2 with Raspbian installed.

Requirements

Installation

Typically you'd install this script on the same server that runs OpenHAB 2.

You can check if everything's working correctly by opening http://servername:port, where servername is the name or ip of the server that runs the script, and port is the port you chose to run the service on. If all went well you should see the raw metrics appear.

Also don't forget to add this location to your scrape targets in Prometheus!