diff --git a/docs/node-observ-lib/linux/targets.libsonnet b/docs/node-observ-lib/linux/targets.libsonnet index 3101099b87..58dc96f340 100644 --- a/docs/node-observ-lib/linux/targets.libsonnet +++ b/docs/node-observ-lib/linux/targets.libsonnet @@ -696,6 +696,34 @@ local lokiQuery = g.query.loki; 'irate(node_network_receive_bytes_total{%(queriesSelector)s}[$__rate_interval])*8' % variables ) + prometheusQuery.withLegendFormat('{{ device }} received'), + networkOutBitPerSecFiltered: + prometheusQuery.new( + prometheusDatasource, + ||| + irate(node_network_transmit_bytes_total{%(queriesSelector)s}[$__rate_interval])*8 + # only show interfaces that had traffic change at least once during selected dashboard interval: + and + increase( + node_network_transmit_bytes_total{%(queriesSelector)s}[$__range] + ) > 0 + ||| % variables + ) + + prometheusQuery.withLegendFormat('{{ device }} transmitted'), + networkInBitPerSecFiltered: + prometheusQuery.new( + prometheusDatasource, + ||| + irate(node_network_receive_bytes_total{%(queriesSelector)s}[$__rate_interval])*8 + # only show interfaces that had traffic change at least once during selected dashboard interval: + and + increase( + node_network_receive_bytes_total{%(queriesSelector)s}[$__range] + ) > 0 + ||| % variables + ) + + prometheusQuery.withLegendFormat('{{ device }} received'), + + networkOutErrorsPerSec: prometheusQuery.new( prometheusDatasource,