time reqs, 2
This commit is contained in:
parent
4db989022e
commit
d19ac55dea
@ -199,7 +199,7 @@ def ntpserver():
|
|||||||
query = """
|
query = """
|
||||||
select time_bucket('5 minutes', time) as bucket,
|
select time_bucket('5 minutes', time) as bucket,
|
||||||
device,
|
device,
|
||||||
avg(cast(values->'time-reqs-pkts'->>'value' as float)) as packets
|
avg(cast(values->'time-req-pkts'->>'value' as float)) as packets
|
||||||
from measurements
|
from measurements
|
||||||
where time >= date_trunc('day', now()) AND time < date_trunc('day', now()) + '1 day'::interval and
|
where time >= date_trunc('day', now()) AND time < date_trunc('day', now()) + '1 day'::interval and
|
||||||
application = 'SNMP' and attributes->>'Label' = 'david'
|
application = 'SNMP' and attributes->>'Label' = 'david'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user