Compare commits

...

2 Commits

Author SHA1 Message Date
d19ac55dea time reqs, 2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-02-13 11:09:18 +01:00
4db989022e time reqs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-02-13 10:59:17 +01:00

View File

@ -199,7 +199,7 @@ def ntpserver():
query = """
select time_bucket('5 minutes', time) as bucket,
device,
avg(cast(values->'lan-in-pkts'->>'value' as float)) as packets
avg(cast(values->'time-req-pkts'->>'value' as float)) as packets
from measurements
where time >= date_trunc('day', now()) AND time < date_trunc('day', now()) + '1 day'::interval and
application = 'SNMP' and attributes->>'Label' = 'david'
@ -211,7 +211,8 @@ def ntpserver():
fig_2.update_layout(
xaxis_title="",
yaxis_title="",
title=f"Packets"
yaxis_ticksuffix="p/s",
title=f"Time Requests"
)
graph_html_2 = fig_2.to_html(full_html=False, default_height='30%')