chronograf
chronograf copied to clipboard
Chore, research queries around top level host stats
How do we want to do this, end point or predefined query objects?
Goller to research best approach.
SHOW TAG VALUES FROM "system" WITH "key" = 'host' WHERE "host" =~ /prod-/
SELECT "host", "usage_system"*100 FROM "cpu" WHERE "time" > now() - 10m AND "host" =~ /prod-/ AND "cpu" = 'cpu-total' GROUP BY "host" ORDER BY DESC LIMIT 1
SELECT "host", "load1", "n_cpus", "uptime" FROM "system" WHERE "time" > now() - 10m AND "host" =~ /prod-/ GROUP BY "host" ORDER BY DESC LIMIT 1
SHOW MEASUREMENTS WHERE "host" = 'prod-f6baa2c7-us-east-1-meta-0'
My recommendation is to make an endpoint.