better ifname regexp (#23)

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-12 23:07:51 +03:00 committed by GitHub
parent 1f8ddb8254
commit aa802b1c36
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": "",
@ -8813,4 +8813,4 @@
"uid": "nR3NRDGaz",
"version": 1,
"weekStart": ""
}
}