I’m collecting information from an iDrac server using snmp. This gives me stuff like
plus a few others. The problem I’m facing is that the values for these fields are simply numbers from 1 - 6
In Grafana i can map these values to text values for my dashboards so
1 = other alert
2 = unknown alert
4 = non critical alert
5 = critical alert
6 = non recoverable alert.
How can i assign the above text values as a tag? So when my data arrives i have say
status_name: other alert
status_name: non recoverable
I tried to use the enum processor but this invalidates my config so i thought I might be able to use Kapacitors lambda and if statements to do this but this causes the datapoints to be dropped as soon as they’re evaluated. I assume the name of the field “psu-status” is being overwritten by the value from the if statement so i can’t trigger an alert.