Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

[feat] Surface z-wave queue stats and metrics data over MQTT #512

Open
LordMike opened this issue May 20, 2020 · 4 comments
Open

[feat] Surface z-wave queue stats and metrics data over MQTT #512

LordMike opened this issue May 20, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@LordMike
Copy link

LordMike commented May 20, 2020

Is your feature request related to a problem? Please describe.
I sometimes experience delays in operations of devices. Usually, it works fine - but if I stress the system (many changes at once), I get delays.. It may be expected, but I'd like to know more about why these delays occur, and more about the network in general.

Describe the solution you'd like
To start with, if it would be possible to push some metrics over MQTT, such as:

  • Queue sizes - I suppose there's an outbound queue for devices that may be busy or asleep
  • Time-to-delivery metrics - any kind of number, showing how long it took to deliver messages - maybe an average over N hours?
  • Congestion metrics - any kind of metrics that may indicate, that too many messages are being sent/received

Later, UI's could be added in Z2M that displays the same stats.

I don't know what metrics are available, or what else might be interesting.. But these are my initial ideas.

I imagine they could be pushed to MQTT under some prefix, f.ex. zwave2mqtt/metrics/... .. or maybe for node-specific metrics, to zwave2mqtt/metrics/<node name or id>/...

Describe alternatives you've considered
N/A

Additional context
N/A

@LordMike LordMike added the enhancement New feature or request label May 20, 2020
@LordMike LordMike changed the title [feat] Display / Push z-wave queue stats / metrics data [feat] Surface z-wave queue stats and metrics data over MQTT May 20, 2020
@robertsLando
Copy link
Member

Metrics are available using getNodeStatistics against a specific node, why not using mqtt apis to manually get them?

@LordMike
Copy link
Author

Oooh. Neat. There's a whole section on API's I've skipped.

I could possibly whip something up that will get me details. Do the z-wave events tell me anything about queues and their sizes, when they happen?

It's counterproductive if I (or Z2M) has to poll for it .. that wouldn't tell anyone how long a queue was at a given size.

@robertsLando
Copy link
Member

Do the z-wave events tell me anything about queues and their sizes, when they happen?

There is no event for that AFAIK

@robertsLando
Copy link
Member

@LordMike Did you take a look at: https://github.com/zwave-js/zwavejs2mqtt?

If you wonder why: https://github.com/zwave-js/zwavejs2mqtt#why-zwavejs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants