New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metrics service not reporting thing properties #11088
Comments
The metric service is intended to expose metrics about openhab internals in order to monitor the state/health of the system (e.g. "irrelevant Java stuff"). What you expect (exposing thing properties) would rather be done by persistence addons, like the one for InfluxDB: https://www.openhab.org/addons/persistence/influxdb/ |
@pravussum is right, the metric service does not cover binding specific metrics. If there are any metrics in Z-Wave that make sense to be exposed in general, it could also be an option to make the Z-Wave binding provide such metrics through the micrometer API. But this would require a PR/issue in https://github.com/openhab/org.openhab.binding.zwave and not here in this repo. |
@pravussum Thanks for the reply. I did see the influxdb plugin, but felt that it was redundant to store time series data there first then scrape it only to store it yet again in my prometheus+grafana container which has all my other "house metrics". Maybe I can tweak retention to 2 days so won't be that much overhead. |
@pravussum Sorry, I just read this:
If my motion sensor is a "thing" and that "thing" has a motion state and temperature state, shouldn't those be provided per the documentation? |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/proposal-micrometer-persistence-service/147306/11 |
I know this is stale and closed, but I believe that my proposal here in the forums would nicely answer this request. |
Running OH 3.1.0 in docker with working ZWave+devices
Installed the 'Metrics service 3.1.0' (@pravussum this yours?)
Checked
/rest/metrics/prometheus
and not seeing any properties of my zwave devicesExpected Behavior
Expecting to be able to see the values of the channels provided by my zwave devices (temp, on/off state, kwh, etc) so i can scrape them into prometheus for grafana viewing.
Current Behavior
Not showing properties of channels.
No
smarthome_event_count
of any kind in output.Showing lots of irrelevant java stuff.
The text was updated successfully, but these errors were encountered: