Can't manually pull tags from OID #1196
-
Host operating system: output of
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You are specifying an index in your lookup labels. It's trying to find that label index on the metric. Since your metric has no index there's nothing to match. I haven't tried this, but maybe it would work with no lookup index?
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the guidance. I just need to figure out the exact syntax to make them tags. I took your example and got no tags, so I tried to specify a tag for one of them (even though it has nothing to replace). Still no dice. auths:
public_v1:
community: public
security_level: noAuthNoPriv
auth_protocol: MD5
priv_protocol: DES
version: 1
modules:
if_mib:
max_repetitions: 25
retries: 3
timeout: 10s
get:
- 1.3.6.1.4.1.20916.1.9.1.1.1.2.0 # Metric
- 1.3.6.1.4.1.20916.1.9.1.1.1.3.0 # Sensor Name
- 1.3.6.1.2.1.1.5.0 # Device Name
metrics:
- name: internal_sensor
oid: 1.3.6.1.4.1.20916.1.9.1.1.1.2.0
type: gauge
help: The temperature reading in Fahrenheit of the Internal Sensor
lookups:
- labels: [type]
labelname: type
oid: 1.3.6.1.4.1.20916.1.9.1.1.1.3.0
type: DisplayString
- labels: []
labelname: device_name
oid: 1.3.6.1.2.1.1.5.0
type: DisplayString You can see the top one actually has the label, but no value. The bottom one doesn't even show up.
|
Beta Was this translation helpful? Give feedback.
Yea, I don't think this is kind of non-indexed supported right now.