Regex: Templating -> Graph difference

Hello.

I think i’ve found a bug in connection with templating regex and the values in the graph.

The problem:

I want to grep one especially network interface and this incoming and outgoing traffic from a zabbix template. this template receive all adapters from the windows machine.

:example:

network interface to monitor:
Hyper-V Virtual Ethernet Adapter #2

existing interfaces on windows:
Hyper-V Virtual Ethernet Adapter #2
Hyper-V Virtual Ethernet Adapter #2-WFP 802.3 MAC Layer LightWeight Filter-0000
Hyper-V Virtual Ethernet Adapter #2-WFP Native MAC Layer LightWeight Filter-0000
Hyper-V Virtual Ethernet Adapter #2-QoS Packet Scheduler-0000

templating:
name is netif
regex: /^(?:Incoming|Outgoing) network traffic on Hyper-V Virtual Ethernet Adapter #2$/
output in template:
Incoming network traffic on Hyper-V Virtual Ethernet Adapter #2
Outgoing network traffic on Hyper-V Virtual Ethernet Adapter #2

selection options in dropdown:
all
Incoming network traffic on Hyper-V Virtual Ethernet Adapter #2
Outgoing network traffic on Hyper-V Virtual Ethernet Adapter #2

seems good to me…but…

the graph shows me all the four existing interfaces, each with incoming and outgoing:
item: /$netif/
Incoming network traffic on Hyper-V Virtual Ethernet Adapter #2
Incoming network traffic on Hyper-V Virtual Ethernet Adapter #2-WFP 802.3 MAC Layer LightWeight Filter-0000
Incoming network traffic on Hyper-V Virtual Ethernet Adapter #2-WFP Native MAC Layer LightWeight Filter-0000
Incoming network traffic on Hyper-V Virtual Ethernet Adapter #2-QoS Packet Scheduler-0000
or
Outgoing network traffic on Hyper-V Virtual Ethernet Adapter #2
Outgoing network traffic on Hyper-V Virtual Ethernet Adapter #2-WFP 802.3 MAC Layer LightWeight Filter-0000
Outgoing network traffic on Hyper-V Virtual Ethernet Adapter #2-WFP Native MAC Layer LightWeight Filter-0000
Outgoing network traffic on Hyper-V Virtual Ethernet Adapter #2-QoS Packet Scheduler-0000

I’ve spend a lot of time, many regex and also the regex in graph/item but without success…

Is it on me and my regex or maybe a bug?

cheers
Andre

fix the problem…

In metrics use that at item and it works: /$netif$/

thx