Hi everyone,
While planning to use the statsd_exporter to collect metrics from short-lived jobs, I was looking for a way to expire metrics that haven't been updated for a certain period.
Reading the statsd_exporter docs, I thought this might be configured by using the provided TTL parameter.
However, it seems that setting this parameter does not create the expected behavior.
For example, if I set the TTL to 10 sec, I would expect metrics that aren't updated within 10 seconds to be deleted.
The actual behavior shows that all metrics are deleted 10 seconds after they have been created, regardless of whether they were updated or not.
I have attached a screen capture as an example.
Is this a bug or is this behavior to be expected?
I have already adapted the source code locally to create the behavior I expect.
Should it actually be a bug, I can create a PR for it in the GitHub repo