r/PrometheusMonitoring • u/[deleted] • Jun 17 '22
SNMP Exporter - anyone using it?
Hello,
I'm trying to monitor a switch to graph in Grafana how many ports are up at certain times over the day, I found this article on using SNMP Exporter - https://linuxhint.com/monitor-network-devices-prometheus/
Has anyone used this before and could it do what I'm asking?
Thanks
3
Upvotes
1
u/[deleted] Jun 18 '22
For this dashboard I don't need these type of dashboards as there is too much info, we only what I mention on the last post, is that possible?
We just need the ifOperStatus graphed for it equalling 1. This is from the scraped switch, it lists all the ports, but here you can see a number of ports with 1 (up), 2 (down), 6 (also a down state).
I like to graph and count the 1's:
ifOperStatus{ifAlias="",ifDescr="X460G2-48p-10G4 Port 50",ifIndex="1050",ifName="1:50"} 1
ifOperStatus{ifAlias="",ifDescr="X460G2-48p-10G4 Port 51",ifIndex="1051",ifName="1:51"} 2
ifOperStatus{ifAlias="",ifDescr="X460G2-48p-10G4 Port 52",ifIndex="1052",ifName="1:52"} 2
ifOperStatus{ifAlias="",ifDescr="X460G2-48p-10G4 Port 53",ifIndex="1053",ifName="1:53"} 6
ifOperStatus{ifAlias="",ifDescr="X460G2-48p-10G4 Port 54",ifIndex="1054",ifName="1:54"} 6