SNMP exporter

49 views
Skip to first unread message

BHARATH KUMAR

unread,
Jun 12, 2024, 12:53:44 AMJun 12
to Prometheus Users
Hello All,

I have two servers A and B. server A is a GM200 device where SNMP agent is enabled and nothing is installed there. 

And in server B I installed SNMP exporter and Prometheus and I want to add the SNMP agent details in server to monitor the cpu usage and temperature of the server A.

prometheus.yml:

- job_name: 'snmp'
    static_configs:
      - targets: ['Server A IP']
    metrics_path: /snmp
    params:
      module: [if_mib]
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: server B IP:9116

SNMP.yml:
it consists of 24000 lines of code with all the oids... As I installed SNMP in server B and I want to configure the Server A details in server B so that I can push the data to the prometheus.

I am confused how to add the Server SNMP agent details in Server B so that i can get the server A metrics.

Can anyone help me?

Thanks in Advance.

Thanks & regards,
Bharath Kumar.

Ben Kochie

unread,
Jun 12, 2024, 1:32:52 AMJun 12
to BHARATH KUMAR, Prometheus Users
You need to find out from your vendor what OIDs/MIBs are useful for the "GM200 device".

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d2fffb18-b830-4e9c-89cc-b5a9fca704c2n%40googlegroups.com.

BHARATH KUMAR

unread,
Jun 12, 2024, 1:50:24 AMJun 12
to Ben Kochie, Prometheus Users
I have the OID's list.. Once I find the OID list where should I add those? and Did the generator needed for this?

BHARATH KUMAR

unread,
Jun 13, 2024, 2:27:14 AMJun 13
to Prometheus Users
Can anyone share the documentation or help me out to view the metrics of GM200 device in Prometheus UI.

I am not able to see the metrics in Prometheus. 

Alexander Wilke

unread,
Jun 13, 2024, 3:09:58 AMJun 13
to BHARATH KUMAR, Prometheus Users
Please share your generator.yml you used and the Output of the Generator command which will build the snmp.yml.

Please share the MIBs you used.

Share the Generator command you used with all Flags.


In short the Workflow is.
1.) collect all needed MIBv2 and all their dependent MIBs.
2.) Put all These MIBs in a folder
3.) in generator.yml add your credentials and the OIDs/Names/values you want to collect.
4.) Run the Generator, Point it to generator.yml andthe MIBs folder and it should create the snmp.yml
5.) use the snmp.yml in the snmp_exporter config.

At which step do you have questions and please provide commands, configs.

Reply all
Reply to author
Forward
0 new messages