Skip to content

robisa693/snmp_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snmp_exporter

Does an snmpget on specified devices and converts into prometheus metrics hosted on localhost:8000. Ready for the taking, I mean scraping.

edit config.ini

A bit messy but just add more entries in the config.ini file as instructed inside. TODO: Segment to configuration file into more readable form.

Output of a curl requst

Each entry in the config file will be its own metric

$ curl localhost:8000
# HELP fw_cpu_total_util total cpu utilization of junos fw
# TYPE fw_cpu_total_util gauge
fw_cpu_total_util{instance="fwhostname1"} 5.0
# HELP fw_cpu_total_util total cpu utilization of junos fw
# TYPE fw_cpu_total_util gauge
fw_cpu_total_util{instance="fwhostname2"} 4.0

About

writing my own simple to use python snmp exporter to be scraped by promtheus agent

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors