hi3g / freki

1 stars 0 forks source link

Query engine for data points #20

Open vonbirdie opened 9 years ago

vonbirdie commented 9 years ago

Other query implementations are InfluxDB and Prometheus.

vonbirdie commented 9 years ago

Possible query syntax?

SELECT RATE(system.cpu.utilization{host=*,cpu=0|1,dc!=hk})
    GROUP BY TAG KEY avg(host)
    GROUP BY time(10m);

Different alternatives for time bounds:

BETWEEN 12312312321 AND 2132131312321
SINCE 123123123123
WHERE time > now() - 3h
vonbirdie commented 9 years ago

Another proposal for specifying the time:

BETWEEN [time] AND [time]

where time = ( [digit]m [digit]d [digit]H [digit]M [digit]s ago | now | timestamp)