There does not seem to be a way to replace no data by zeros when using formulas in datadog. I've tried fill zero but it doesn't seem to work I would simply like my dd agent monitor to display 0 instead of no data when it is down
how about the "default" function?
so default(sum:foo.bar{hello:world} by {baz}, 0)
or some such?
The default_zero()
function does what you're looking for. You can type it in manually, as stephenlechner suggests.
There's another way I found:
Click "Advanced" in the bottom right:
Enter default(a, 0)
as the formula, and disable the visibility of metric a
:
When you save the graph and reopen, you'll see that things have been reshuffled a little, and you'll see a "default 0" section tagged onto the end of the metric's definition.
There is now a default_zero() function that can be used in Datadog by modifying through JSON directly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With