- What Grafana version and what operating system are you using?
9.0.7
- What are you trying to achieve?
I’m trying to get prometheus to alert if an interface with a particular description is operationally up but administratively down.
- How are you trying to achieve it?
I’m trying to achieve it using a custom alert expression, which isn’t working
- What happened?
The expression doesn’t return any values and therefore doesn’t trigger an alert.
- What did you expect to happen?
I’d expect an alert to be triggered for an interface operationally down but administratively up if it’s description contailed the letters ‘OSN’.
- Can you copy/paste the configuration(s) that you are having problems with?
ifOperStatus != 1 and ifAdminStatus == 1 and ifDescr{ifDescr=".*OSN.*"}
In the above, the value is the exact output but is realistically 70 degrees celsius, in the same way that an output of 316 would be 31.6 degrees celsius.
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No alerts to speak of
- Did you follow any online instructions? If so, what is the URL?
n/a