Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana Agent SNMP V3 #5294

Closed
brngates98 opened this issue Sep 25, 2023 · 2 comments
Closed

Grafana Agent SNMP V3 #5294

brngates98 opened this issue Sep 25, 2023 · 2 comments
Labels
bug Something isn't working frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.

Comments

@brngates98
Copy link

brngates98 commented Sep 25, 2023

What's wrong?

SNMP V3 Does not seem to work via the grafana agent

Steps to reproduce

snmp:
  enabled: true
  relabel_configs:
    - action: replace
      source_labels: [job]
      regex: (^.*snmp)\/(.*)
      target_label: job_snmp
      replacement: $1
    - action: replace
      source_labels: [job]
      regex: (^.*snmp)\/(.*)
      target_label: snmp_target
      replacement: $2
  snmp_targets:
    - name: network_switch_1
      address: 'switch1'
      module: if_mib
      version: 3  # Specify SNMP version 3
      auth:
        username: 'username'
        password: 'password'
        auth_protocol: SHA  # Use the appropriate authentication protocol (SHA or MD5)
        privacy_password: 'password'
        privacy_protocol: DES  # Use the appropriate privacy protocol (AES or DES)
      timeout: 5s  # Specify the SNMP timeout
      retries: 3   # Specify the number of SNMP retries
  metric_relabel_configs:
    - action: keep
      regex: ifHCInOctets|ifHCOutOctets|ifInErrors|ifMtu|ifOperStatus|ifOutErrors|ifPhysAddress|ifSpeed|ifType_info|snmp_scrape_duration_seconds|sysUpTime
      source_labels:
        - __name__

System information

No response

Software version

No response

Configuration

Grafana Agent attempting to use it to collect snmp if_mib stats

Logs

No response

@brngates98 brngates98 added the bug Something isn't working label Sep 25, 2023
@marctc
Copy link
Contributor

marctc commented Sep 27, 2023

Which version of the agent are you running? Keep in mind that since version 0.35, we did breaking changes to SNMP config to adapt to upstream exporter. I see you are using version which now is not being used anymore

@marctc
Copy link
Contributor

marctc commented Oct 9, 2023

I'm closing this ticket. Feel free to reopen if you still have issues running the SNMP integration with new configuration format.

@marctc marctc closed this as completed Oct 9, 2023
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
No open projects
Development

No branches or pull requests

2 participants