mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2025-12-07 02:49:29 +00:00
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:
parent
1f8ddb8254
commit
aa802b1c36
1 changed files with 2 additions and 2 deletions
|
|
@ -8636,7 +8636,7 @@
|
||||||
"refId": "Prometheus-Interface-Variable-Query"
|
"refId": "Prometheus-Interface-Variable-Query"
|
||||||
},
|
},
|
||||||
"refresh": 1,
|
"refresh": 1,
|
||||||
"regex": "/ifName=\"(.*)\",instance/",
|
"regex": "/ifName=\"(.*?)\"/",
|
||||||
"skipUrlSync": false,
|
"skipUrlSync": false,
|
||||||
"sort": 0,
|
"sort": 0,
|
||||||
"tagValuesQuery": "",
|
"tagValuesQuery": "",
|
||||||
|
|
@ -8813,4 +8813,4 @@
|
||||||
"uid": "nR3NRDGaz",
|
"uid": "nR3NRDGaz",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue