Table data in Chronograf is not displaying

I’m having trouble viewing data on a dashboard but I can see it in the Flux raw-data viewer.

The flux query is just pulling simple stats for each machine in a cluster:

from(bucket: "telegraf/autogen")
  |> range(start: v.timeRangeStart)
  |> filter(fn: (r) => r._measurement == "clusterware" )
  |> last()
  |> pivot( rowKey: ["host"], columnKey: ["_field"], valueColumn: "_value" )
  |> keep( columns: [ "time", "hostname", "mac", "ip", "net" ] )

and I can see the correct output in the raw-data view:

result  table  hostname  ip                          mac                          net
             0      n0             192.168.100.100  52:54:00:00:00:01    192.168.100.0/24

But on the dashboard, it is a blank table?

What am I missing?

nevermind … Content Security Policy was blocking some of the code.

1 Like