You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm having trouble using kapacitor with telegraf's network statistics, specifically the bytes_recv and bytes_sent fields. I couldn't really see why until LogNode was added recently:
E! failed to marshal alert data json json: error calling MarshalJSON for type influxql.Result: json: unsupported value: +Inf`
I'm trying to take these two fields, calculate the Mbps rate, and alert on a threshold. My TICK script:
@justindowning I think I found the issue. If multiple points arrive at the same time for a group then the derivative divides the points by 0, thus creating the +Inf value. Since Telegraf is not likely sending values at the same time its is probably a grouping issue.
I will fix the +Inf bug, but you can likely solve your issue by changing the groupBy dims:
var netdata = stream
.from().measurement('net')
// Try grouping by everything to start with to see if that fixes the issue
.groupBy(*)
Hi! I'm having trouble using kapacitor with telegraf's network statistics, specifically the
bytes_recv
andbytes_sent
fields. I couldn't really see why until LogNode was added recently:I'm trying to take these two fields, calculate the Mbps rate, and alert on a threshold. My TICK script:
The text was updated successfully, but these errors were encountered: