I am using chronograf to build queries using the flux language. Currently the query I am building only shows the data specific to a single tag over a specific period of time. What I am trying to accomplish is to graph two distinct tags over the same period of time. Where each tag is it’s own line and (preferably) it’s own unique color.
To build a query with one tag this is the flux code I have written:
|> range(start: dashboardTime, stop: upperDashboardTime)
|> filter(fn: ® =>
r._measurement == “data” and
(r._field == “value”) and
(r.data_name == “CAT 1”)
How can I edit this code to include both “CAT 1” and “CAT 2” and display them on the same line graph separately with chronograf? Thanks to all of those who respond in advance.