I want to calculate my server hourly network traffic, so I create a calclulted item "sum(//net.if.in["enp4s0"],1h)+sum(//net.if.out["enp4s0"],1h)"
But the data was obviously wrong. I also tried sum(//net.if.total["enp4s0",1h]), didn't work either.
There was an old topic about the same demand, it used "last("net.if.in[{$IF1},bytes]")-last("net.if.in[{$IF1},bytes]",,1h)", but this can't be used in 5.4.
Anyone can help?
But the data was obviously wrong. I also tried sum(//net.if.total["enp4s0",1h]), didn't work either.
There was an old topic about the same demand, it used "last("net.if.in[{$IF1},bytes]")-last("net.if.in[{$IF1},bytes]",,1h)", but this can't be used in 5.4.
Anyone can help?
Comment