Skip to content
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

Exclude aggregate interface 'all' thas has missing error/drop fields #2385

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/telegraf/net/net_alert_batch.tick
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ var unit = 1s

// Dataframe
var rawdata = batch
|query('''SELECT err_in, err_out, drop_in, drop_out FROM "telegraf"."autogen"."net" ''')
// "interface" 'all' has missing some fields - so it must be excluded from results
|query('''SELECT err_in, err_out, drop_in, drop_out FROM "telegraf"."autogen"."net" WHERE interface != 'all' ''')
.period(period)
.every(every)
.groupBy('host', 'interface')
Expand Down
1 change: 1 addition & 0 deletions examples/telegraf/net/net_alert_stream.tick
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var rawdata = stream
.database('telegraf')
.retentionPolicy('autogen')
.measurement('net')
.where(lambda: "interface" != 'all' ) // "interface" 'all' has missing error fields so it must be excluded
.groupBy('host', 'interface')

var err_in = rawdata
Expand Down