promqtt icon indicating copy to clipboard operation
promqtt copied to clipboard

Series closing

Open tombrk opened this issue 4 years ago • 1 comments

Currently, when an actor stops sending messages to MQTT, promqtt will export the last received value forever.

How shall we deal with this?

  1. Not. Leave as is. This appears to be what the Pushgateway does as well.
  2. Add a timeout (e.g. 5m, etc).
  3. 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.

Thoughts? @RichiH?

tombrk avatar Jun 28 '21 11:06 tombrk

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

RichiH avatar Jun 28 '21 16:06 RichiH