Using timescaledb with telegraf. I have a host with multiple interfaces. The query I run is,
select time,interface,(bytes_recv-lag(bytes_recv,1) OVER (partition by interface order by time)) as bytes_recv from net where host in ('hosta','hostb') AND time between "2023-01-29" AND "2023-02-01" group by time,bytes_recv,interface
This works but I am trying to get
time,host,total_bytes_recv (delta) from all interfaces
4 posts - 2 participants