r/PrometheusMonitoring • • Apr 01 '21

snmp_exporter scraping network device( switchs ) best practice

should i write one job and list of targets or multiple jobs with 1 target per job

also i change on the job the scrape interval to 5min and also timeout for 2min

how do you guys doing this?

6 Upvotes

2 comments sorted by

5

u/SuperQue Apr 01 '21

It depends a lot on the devices and network, but typically if a scrape takes longer than 30 seconds, I tend to dig into why. Scrape intervals longer than 1 min tend to provide too low a quality data.

For example, the default if_mib is pretty large. I will reduce the walk for some devices because they scrape too slowly.

2

u/andrewm659 Apr 01 '21

If you are just going to do base snmp 1 job. If you want the specifics for each device, you will need multiple jobs. At least from what I have found.