prometheus-snmp_exporter juju charm not supporting SNMPv3

82 views
Skip to first unread message

Sreekrishnan P

unread,
Jan 18, 2021, 11:44:25 AM1/18/21
to Prometheus Users

Hi Folks,

I wanted to start the exporter with snmp version 3 config using prometheus-snmp-exporter juju charm but looks like its not supporting SNMP V3 config.

Deployed charm: cs:prometheus-snmp-exporter-1
https://jaas.ai/prometheus-snmp-exporter/1

snmp.yml

if_mib:
  walk:
  - 1.3.6.1.2.1.1
  metrics:
  - name: sysDescr
    oid: 1.3.6.1.2.1.1.1
    type: DisplayString
    help: A textual description of the entity - 1.3.6.1.2.1.1.1
  version: 3
  max_repetitions: 25
  retries: 3
  timeout: 5s
  auth:
    security_level: authPriv
    username: <user_name>
    password: <password>
    auth_protocol: MD5
    priv_protocol: AES

Exporter supposed to start with the above config, but instead it gives the following error, it works when I run the snmp_exporter from the downloaded tar from here.

Error log

Jan 18 09:37:33 apnnc01pkrw-test-3 prometheus-snmp-exporter.snmp-exporter[9742]: time="2021-01-18T09:37:33Z" level=info msg="Build context (go=go1.6.2, user=, date=)" source="main.go:100" Jan 18 09:37:33 apnnc01pkrw-test-3 prometheus-snmp-exporter.snmp-exporter[9742]: time="2021-01-18T09:37:33Z" level=fatal msg="Error parsing config file: unknown fields in module: get" source="main.go:105"

Am I missing anything here?

Thanks in advance.

Reply all
Reply to author
Forward
0 new messages