New Add-on bundle for Prometheus health Metrics

@diyha you mentioned ([SOLVED] Presence with Android after using Iphone - #48 by diyha) you would like to see some “stats” from your openHAB instance. I think this bundle will do the thing for you.
In detail:

  • what bindings are installed :white_check_mark:
  • what bindings were uninstalled after they were installed :white_check_mark: (you record the installed bundles over time in prometheus and look at them, can even issue PromQL queries to filter bundles for specific properties, e.g. changed from installed to uninstalled)
  • how many things a binding serves :x:(this is not directly implemented yet, but you will get a list of all things)
  • how many exceptions are thrown by a binding shortly after being installed (may indicate poor docs and poor parm descriptions) :white_check_mark: (the metrics bundle counts the number of log messages by level)
  • how many exceptions are thrown by a binding in a given time :white_check_mark: (see above)
  • how many exceptions are thrown by platform (may indicate popular platform issue) :white_check_mark: (see above and additionally the events per source are counted, this will also be revealing)
  • how often OH reboots :white_check_mark: not directly counted but can be inferred from resetting event counters
  • how often rule engine throws errors (may indicate poor rue language VM and tooling) :white_check_mark: (counted in the logs and event bus)
  • etc :white_check_mark: (number of inbox entries, bundle and thing state, thread/pool size and counts, jvm/process/memory insights)

Let me know if you have any questions, suggestions or feature requests or if the bundle helps you in any way.

1 Like