better ifname regexp

Before regexp for isolating interface names was relying on the the next tag in query to be exactly "instance", which were generating few issues:
  - if there is another tag starting with the word "interface"
  - if the next tag is not "interface"
then the interface name extracted are not valid.

The proposed regexp is solving that issues
This commit is contained in:
Yovko Yovkov 2022-10-09 16:13:56 +03:00 committed by GitHub
parent 1f8ddb8254
commit e275c46fbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8636,7 +8636,7 @@
"refId": "Prometheus-Interface-Variable-Query"
},
"refresh": 1,
"regex": "/ifName=\"(.*)\",instance/",
"regex": "/ifName=\"(.*?)\"/",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",