Static Metric Labels? #1501
Unanswered
AaronWiggins27
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Collecting SNMP data for sensors and I'm looking to put static labels for metrics. For example, the oid below is a digital sensor and I want to add a second label named sensor_type with the label "digital". This is just one way that I've tried but it did not work. Is there a way to do this? There are different sensors like digital, internal, analog, etc... so I would not add it to the scrape_configuration.
oid: 1.3.6.1.4.1.20916.1.11.1.2.1.1
type: gauge
indexes:
type: gauge
lookups:
labelname: label
oid: 1.3.6.1.4.1.20916.1.11.1.4.2.1
type: DisplayString
labelname: sensor_type
value: "digital"
type: DisplayString
Beta Was this translation helpful? Give feedback.
All reactions