0

I am using grafana-pcp for system monitoring across multiple systems. I would like to filter the network interface to a specific interface but cannot find the correct syntax to do this.

My legend has the following two items:

network.interface.in.bytes[lo] {agent="linux", device_type="interface", domainname="localdomain", hostname="machine1", indom_name="per interface", machineid="dfe517f65e334b1380623a9f4f4b8f16"}
network.interface.in.bytes[enp1s0] {agent="linux", device_type="interface", domainname="localdomain", hostname="machine1", indom_name="per interface", machineid="dfe517f65e334b1380623a9f4f4b8f16"}

What I want is to capture only the interface [enp1s0], basically filtering out the [lo] interface.

This is my query:

network.interface.in.bytes {hostname == "machine1"}

I have already tried this:

network.interface.in.bytes {hostname == "machine1"}[enp1s0]

and this:

network.interface.in.bytes[enp1s0]{hostname == "machine1"}

Both give syntax errors and I am unable to find anywhere in the documentation on if this is even possible?

Zexelon
  • 495
  • 5
  • 18

0 Answers0