This is an excellent video, well thought out, well presented, perfectly explained. This will help a lot of people! How about if you have 250 devices? This solution seems like it would take a long time. Perhaps if I were a cat with 7 lives then I could use 3 of them to configure Prometheus and get it to work in a medium sized business with about 65 devices across several locations.
@distrodomain3 күн бұрын
In my case I’m generating the Prometheus config dynamically from an ansible inventory where we have all our devices so it speeds up the process for that, and on the grafana side we have a dynamic dashboard, thank you for watching !
@Sonnenblume1142 ай бұрын
Ok nevermind, it works. Thanks for this Video i watched it maybe 100 times this week but now it works. :D
@distrodomain2 ай бұрын
I'm glad it works! yes it's a bit tricky the whole setup, once you understand the basic parts of the puzzle it get easier, thank you for watching!
@MmauricioHirsch2 ай бұрын
Thank you very much for sharing your knowledge, it is helping me a lot. The tutorial was really good! I'm looking from here in Brazil.
@distrodomain2 ай бұрын
I'm glad it was helpful! thank you for watching!
@jostpozman56212 ай бұрын
Thank you so much! really great video, keep it up!!
@distrodomain2 ай бұрын
I'm glad it was helpful, thank you for watching!
@RealRokton3 ай бұрын
Thanks for the guide, seems like "- target_label: __ address__ " in the description has been screwed up by the formatting and changed to "- target_label: _ address_ " (_ changes the text formatting to italic). Sorry for the extra spaces, couldn't figure out how to do the proper formatting my self... One suggestion would be to create a GitHub gist instead with the code
@distrodomain3 ай бұрын
I'm working on this to have a better formated code blocks, thank you for the suggestion and for watching!
@mancobasanele45203 ай бұрын
Great guide, how to enable Prometheus to walk the entire device so I can also get metrics for CPU, memory, icmpOutErrors and temperature
@distrodomain3 ай бұрын
you can add top level mib to the list to crawl like "icmp" parent that includes: icmpInMsgs icmpInErrors icmpInDestUnreachs icmpInTimeExcds icmpInParmProbs icmpInSrcQuenchs icmpInRedirects icmpInEchos icmpInEchoReps icmpInTimestamps icmpInTimestampReps icmpInAddrMasks icmpInAddrMaskReps icmpOutMsgs icmpOutErrors icmpOutDestUnreachs icmpOutTimeExcds icmpOutParmProbs icmpOutSrcQuenchs icmpOutRedirects icmpOutEchos icmpOutEchoReps icmpOutTimestamps icmpOutTimestampReps icmpOutAddrMasks icmpOutAddrMaskReps icmpStatsTable icmpMsgStatsTable you can use an OID reference table to check each parent, let me know if it's helpful, thank you for watching
@piotrnasiadka16719 күн бұрын
Hi can someone help me i did a tutorial and it's working but I also need in grafan a information about what is the temperature of my ups. I think I need to and a question for snnmp to get that information
@damolaazeez35183 ай бұрын
Thank you for this. Would this process work with Cisco devices.
@distrodomain3 ай бұрын
yes this works with any device that supports snmp, Thank you for watching!
@TheBroadcastEngineer3 ай бұрын
I'm running into this error when I'm trying to run *make generator mibs* make: go: No such file or directory make: *** [Makefile:87: generator] Error 127 I've searched high and low on KZbin and Google... nothing... everyone who is doing this tutorial has no problems... Do you have any suggestions? Thanks!
@distrodomain3 ай бұрын
You are missing the go programing language, you need to install the devel libraries, if you are on ubuntu try apt install gccgo-go or apt install golang-go thank you for watching
@TheBroadcastEngineer3 ай бұрын
@@distrodomain awesome I’ll give that a shot on Monday, thank you!
@TheBroadcastEngineer3 ай бұрын
@@distrodomain thank you so much! I missed that step completely and it’s working now.
@stefhaniemilagrosjaramillo22992 ай бұрын
Hi that is only possible with snmp v3? its not allow to v1 or v2?
@mizatto2 ай бұрын
I make it work with v2, since I could not made it work with v3
@distrodomain2 ай бұрын
Yes it works with v1 and v2, I do recommend using v3 tho, thank you for watching!
@jakebenjamin88952 ай бұрын
Do you have a discord or anything similar for community help ? Can't seem to get this to work with custom mibs for a arista switch
@distrodomain2 ай бұрын
The discord is coming soon, and actually I will be adding some arista switches to my system soon, mibs you are probably good with what comes on the generator, what you need to look for is what OIDs you want to scrape like interfaces, or ifHCInOctets, under ifmib, or are you having issue generating the config, thank you for watching!
@jakebenjamin88952 ай бұрын
@@distrodomain Having issues with generating the config to use the bgp mib files, primary use of this to to monitor the peering
@distrodomain2 ай бұрын
what error are you getting?
@jakebenjamin88952 ай бұрын
@@distrodomain on a fresh install now and its now saying on startup of snmp-exporter ts=2024-09-20T21:35:50.933Z caller=main.go:212 level=info msg="Starting snmp_exporter" version="(version=0.26.0, branch=HEAD, revision=44f8732988e726bad3f13d5779f1da7705178642)" concurrency=1 debug_snmp=false ts=2024-09-20T21:35:50.933Z caller=main.go:213 level=info build_context="(go=go1.22.3, platform=linux/amd64, user=root@90ba0aabb239, date=20240511-11:16:35, tags=unknown)" ts=2024-09-20T21:35:51.036Z caller=main.go:220 level=error msg="Error parsing config file" err="yaml: unmarshal errors: line 29871: field datetime_pattern not found in type config.Metric line 30277: field datetime_pattern not found in type config.Metric line 30293: field datetime_pattern not found in type config.Metric line 30309: field datetime_pattern not found in type config.Metric line 30325: field datetime_pattern not found in type config.Metric line 30341: field datetime_pattern not found in type config.Metric line 30357: field datetime_pattern not found in type config.Metric line 30373: field datetime_pattern not found in type config.Metric line 30389: field datetime_pattern not found in type config.Metric line 30405: field datetime_pattern not found in type config.Metric" ts=2024-09-20T21:35:51.036Z caller=main.go:221 level=error msg="Possible old config file, see github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md" This is on a fresh image of ubuntu followed all the steps to a tee.
@jakebenjamin88952 ай бұрын
@@distrodomain on a fresh install ts=2024-09-20T22:39:48.867Z caller=main.go:212 level=info msg="Starting snmp_exporter" version="(version=0.26.0, branch=HEAD, revision=44f8732988e726bad3f13d5779f1da7705178642)" concurrency=1 debug_snmp=false ts=2024-09-20T22:39:48.867Z caller=main.go:213 level=info build_context="(go=go1.22.3, platform=linux/amd64, user=root@90ba0aabb239, date=20240511-11:16:35, tags=unknown)" ts=2024-09-20T22:39:48.965Z caller=main.go:220 level=error msg="Error parsing config file" err="yaml: unmarshal errors: line 29876: field datetime_pattern not found in type config.Metric line 30282: field datetime_pattern not found in type config.Metric line 30298: field datetime_pattern not found in type config.Metric line 30314: field datetime_pattern not found in type config.Metric line 30330: field datetime_pattern not found in type config.Metric line 30346: field datetime_pattern not found in type config.Metric line 30362: field datetime_pattern not found in type config.Metric line 30378: field datetime_pattern not found in type config.Metric line 30394: field datetime_pattern not found in type config.Metric line 30410: field datetime_pattern not found in type config.Metric" ts=2024-09-20T22:39:48.965Z caller=main.go:221 level=error msg="Possible old config file, see github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md"
@samkancil53332 ай бұрын
Hi Bro, I wan to add module fortigate to snmp_exporter, i have MIB file Fortigate but run the generate not detected
@distrodomain2 ай бұрын
put the fortinet mibs in the mibs folder, then on your generator conf, you need to put what oids you want to include in the config to scrape, then generate the config again, let me know if it gives you any errors, thank you for watching!
@overbytex29 күн бұрын
lol, not so straight forward huh :D generator ruins it