mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2025-12-06 10:29:28 +00:00
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:
parent
1f8ddb8254
commit
e275c46fbd
1 changed files with 2 additions and 2 deletions
|
|
@ -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": ""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue