Max ttl for gauges in statsd input plugin #8348
Labels
area/statsd
feature request
Requests for new plugin and for new features to existing plugins
good first issue
This is a smaller issue suited for getting started in Telegraf, Golang, and contributing to OSS.
help wanted
Request for community participation, code, contribution
Feature Request
Proposal:
Allow for setting "gaugesMaxTTL" option in the
statsd
input plugin. Essentially, this from the core statsd repo:https://github.com/statsd/statsd/pull/599/files
Current behavior:
If
deleteGauges
is set to "False" then once a gauge metric is reported it is reported for the life of thetelegraf
server. There is no way to set a TTL value where if the gauge metric is not received at the ingress endpoint after a certain time it is reset to 0.Desired behavior:
An optional
gaugesMaxTTL
option is available for thestatsd
input -- this has exactly the same effect as thedeleteGauges
option, except that it only executes that logic after no input has been received for the value specified ingaugesMaxTTL
.Use case:
Telegraf server
A
on hostX
is taking input from serviceB
and serviceC
. Both of these services are reporting metrics via a gauge with "deleteGauges" set toFalse
-- let's assume this is required w/o getting distracted by details. :-)Now, service
C
is turned down by some load-managing automation. However, telegrafA
will still report the last gauge metrics to Influx until restarted, with no way of ever reflecting the fact that serviceC
is permanently gone.The text was updated successfully, but these errors were encountered: