-
|
I have a device which unfortunately returns boolean values as a DisplayString. Is it possible to convert this to a numeric value of 0 or 1 using snmp-exporter? To make matters worse, other rows in this same table have float values. Those can be parsed with a regex_extract, but if I do that, then all the non-numeric ones are dropped. cdcp4445RgbLvpsStatusValue:
regex_extracts:
'':
- regex: '(.*)' |
Beta Was this translation helpful? Give feedback.
Answered by
SuperQ
Sep 10, 2025
Replies: 1 comment 1 reply
-
|
The cdcp4445RgbLvpsStatusValue:
regex_extracts:
status:
- regex: 'false'
value: 0
- regex: 'true'
value: 1 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
llamafilm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
regex_extractscan map values.