How to Add Additional object into generator.yml

650 views
Skip to first unread message

Fosiul Alam

unread,
Mar 19, 2018, 4:27:14 AM3/19/18
to Prometheus Users
Hello,

I am referring bellow document , where it say to build generator.
https://github.com/prometheus/snmp_exporter/tree/master/generator

but what I dont understand is , how do I add OID which are not included in Generator.yml file ?

example

https://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html

I want to graph cpu/memory uses of Cisco devices, but the Oid is not included into Generator.yml file  .1.3.6.1.4.1.9.9.109.1.1.1.1.6)

Would appreciate your help

Thanks

Brian Brazil

unread,
Mar 19, 2018, 4:52:54 AM3/19/18
to Fosiul Alam, Prometheus Users
You can add it as another entry in a walk list.

Brian
 

Would appreciate your help

Thanks

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/33b247d1-d51d-4a88-8bc3-65a05b91f954%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Message has been deleted

Brian Brazil

unread,
Mar 19, 2018, 5:56:15 PM3/19/18
to Fosiul Alam, Prometheus Users
On 19 March 2018 at 11:41, Fosiul Alam <fos...@gmail.com> wrote:
Thanks Brian,

Now i am able to create additional OID in snmp.yml

before i close this question, i need 2 more help Please .

in my snmp.yml, i have module such
Cisco_wlc,
if_mib
if_mib_ifalias
if_mib_ifdesc

however in prometheus.yml , i am only able to set one module, if_mib, 

is there any way i can use 2 module if_mib and cisco_wlc or more ? 

You can't do that, however you can create one module that contains the oids from both.

Brian
 



scrape_configs:
  - job_name: 'snmp'
    static_configs:
      - targets:
        - 10.10.10.2  # SNMP device.
    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: 127.0.0.1:9116  # The SNMP exporter's real hostname:port.


Thanks for your help as always.


On Monday, March 19, 2018 at 8:52:54 AM UTC, Brian Brazil wrote:
On 19 March 2018 at 08:27, Fosiul Alam <fos...@gmail.com> wrote:
Hello,

I am referring bellow document , where it say to build generator.
https://github.com/prometheus/snmp_exporter/tree/master/generator

but what I dont understand is , how do I add OID which are not included in Generator.yml file ?

example

https://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html

I want to graph cpu/memory uses of Cisco devices, but the Oid is not included into Generator.yml file  .1.3.6.1.4.1.9.9.109.1.1.1.1.6)

You can add it as another entry in a walk list.

Brian
 

Would appreciate your help

Thanks

--
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 post to this group, send email to promethe...@googlegroups.com.



--

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages