Releases: pravussum/openhab-addons
Releases · pravussum/openhab-addons
OH IO Metrics addon preview 2
Second preview build of the OH metrics addon to test the Prometheus & InfluxDB metrics integration.
openhab#9890
- includes configuration
- includes InfluxDB support
OH IO Metrics addon preview
Preview build of the OH metrics addon to test the Prometheus metrics integration.
openhab#9890
OH Metrics core bundle & IO addon
This preview of the openHAB metrics support contains the two new bundles to include them in existing installations:
- the openhab core "Monitor" bundle to replace the existing one
- the new open IO Metrics addon
Installation
Replace the core "Monitor" bundle
- copy over the org.openhab.core.io.monitor-3.1.0-SNAPSHOT.jar to your openhab(ian) machine, e. g.
/home/openhabian
- open the Karaf console:
sudo openhab-cli console
and log in (see documentation for default password) - Find out the ID of the existing Monitor bundle and stop it:
openhab> bundle:list | grep Monitor
150 │ Active │ 80 │ 3.0.0 │ openHAB Core :: Bundles :: Monitor
openhab> bundle:stop 150
- install the new Monitor bundle:
openhab> bundle:install file:///home/openhabian/org.openhab.core.io.monitor-3.1.0-SNAPSHOT.jar
Bundle ID: 274
openhab> bundle:start 274
Now the new Monitor bundle shoudl be running.
openhab> bundle:status 274
Active
Install the IO Metrics Addon
- copy over the org.openhab.io.metrics-3.1.0-SNAPSHOT.jar to your addons folder, e. g.
sudo cp ./org.openhab.io.metrics-3.1.0-SNAPSHOT.jar /usr/share/openhab/addons/
in an OH3 Openhabian installation - the new addon should be picked up automatically by openHAB:
18:41:44.165 [INFO ] [org.openhab.io.metrics.MetricsService] - Metrics service available under /metrics.
Check
Fire up http://openhab:8080/metrics/prometheus in a browser (replace openhab hostname obviously). You should see a textblock of metric output.
Further documentation
Problems?
- If there errors a la
are java.lang.NoClassDefFoundError: org/LatencyUtils/PauseDetector
restart the core bundle using the Karafe console:
openhab> bundle:restart 274
- When
A newer version of openHAB is required for thread pool metrics to work.
is reported, the addon just needs a moment more to realize the core bundle is there...
3.1.0-SNAPSHOT-danfossairunit-1
[prometheusexporter] Initial contribution Signed-off-by: Robert Bach <[email protected]>