-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gauges appear to randomly jump around in Datadog and Prometheus #15683
Comments
Hm, so I think this may be related to the way negative gauges are considered deltas, rather than as independent values. It appears what is happening is that positive values are being reported fine, and then negative values are being added as deltas on top of the last negative value. https://github.com/statsd/statsd/blob/master/docs/metric_types.md#gauges
|
Hey there! Unfortunately, this is exactly how the |
Gotcha, I think the confusion came because my statsd firehose is sending in dogstatsd, which supports negative gauges, whereas statsd parses the negative sign before the gauges differently.
I want to say I can use the lua transform, but I'm not sure if this would work if the statsd transformation (eg. the conversion to a delta) happens at the sink sending level or the source level, given that we are supposed to be sending dogstatsd to Datadog. Are there any other alternatives or ideas you can think of? |
I managed to figure it out in the Lua transform, but would still appreciate if we could get dogstatsd as an option! |
Glad you got it working @derekhuizhang ! I opened #15741 to track dogstatsd support. |
A note for the community
Problem
Gauges appear to randomly jump around in Datadog and Prometheus.
Steps to reduce:
Result in Datadog:
Result in Grafana Prometheus:
However, if you check in the console, you will notice that the actual values are usually between -5 and 5. They never go below -20. Thus, these values should never be sent to Prometheus or Datadog.
I've also confirmed that I don't see the same behavior with datadog-agent.
Configuration
Version
0.26.0
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: