chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Chore, research queries around top level host stats

Open nhaugo opened this issue 10 years ago • 3 comments

How do we want to do this, end point or predefined query objects?

nhaugo avatar Sep 20 '16 16:09 nhaugo

Goller to research best approach.

nhaugo avatar Sep 20 '16 16:09 nhaugo

   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'

goller avatar Sep 21 '16 23:09 goller

My recommendation is to make an endpoint.

goller avatar Sep 21 '16 23:09 goller