Skip to content

Releases: pravussum/openhab-addons

OH IO Metrics addon preview 2

30 Jan 13:31
Compare
Choose a tag to compare
Pre-release

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

25 Jan 21:13
Compare
Choose a tag to compare
Pre-release

Preview build of the OH metrics addon to test the Prometheus metrics integration.
openhab#9890

OH Metrics core bundle & IO addon

04 Feb 18:11
Compare
Choose a tag to compare
Pre-release

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

Here

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

07 Jan 22:02
Compare
Choose a tag to compare
Pre-release
[prometheusexporter] Initial contribution

Signed-off-by: Robert Bach <[email protected]>