query: how to exclude dps with a tag

18 views
Skip to first unread message

Huafeng Lyu

unread,
Mar 1, 2017, 3:17:49 AM3/1/17
to OpenTSDB
Hi,

For a certain metric, its datapoints may or may not carry a particular tag. See the example below, for a given timestamp, 3 datapoints have the tag 'port' and 1 doesn't. (Semantically the one without the tag 'port' is a total value and should be the sum of all that with the tag 'port', but not all ports report the value to opentsdb.) 
lb.incoming.bytes 1488350698 1000 id=12345 port=80 host=a01-r06-i178-27
lb.incoming.bytes 1488350698 1500 id=12345 port=8000 host=a01-r06-i178-27
lb.incoming.bytes 1488350698 1664 id=12345 port=8080 host=a01-r06-i178-27
lb.incoming.bytes 1488350698 8192 id=12345 host=a01-r06-i178-27

When I query, how can I get only the datapoints without the tag 'port'? Obviously, if I do 'sum lb.incoming.bytes id=12345', opentsdb will sum all datapoints with or without the tag 'port'. How can I exclude the one with the tag?

Thanks.

ManOLamancha

unread,
Apr 25, 2017, 4:23:46 PM4/25/17
to OpenTSDB
Unfortunately we don't have a filter yet that omits series with a specific tag. We do want to add it though.
Reply all
Reply to author
Forward
0 new messages