Currently, when an actor stops sending messages to MQTT, promqtt will export the last received value forever.
How shall we deal with this?
Not. Leave as is. This appears to be what the Pushgateway does as well.
Add a timeout (e.g. 5m, etc).
Use special topics to "close" series, which makes promqtt remove them from its output. This could play well with LWT (Last will & testament), so that devices that disconnect from the broker are automatically removed.
I personally like (3), because it could leverage the quite unique MQTT property of LWT.
If 3. happens, it should be honored. Pushgateway "solves" this by also exosing the last updated time; having a user-configurable timenout which defaults to "forever" would offer 1 & 2 as well
Currently, when an actor stops sending messages to MQTT, promqtt will export the last received value forever.
How shall we deal with this?
I personally like (3), because it could leverage the quite unique MQTT property of LWT.
Thoughts? @RichiH?