Sign inSign up

transacid/switch-scraper

By transacid

•Updated about 2 months ago

a prometheus scraper that gets metrics from a netgear switch

Image
Networking
Monitoring & observability
0

8.3K

transacid/switch-scraper repository overview

⁠NETGEAR switch metrics scrapper

⁠About

this is a foolish attempt to get metrics out of a managed netgear switch. I have tested it with my GS108Ev3.

Caution

there is **no guarantee** that this will work with your switch.

Since netgear does not provide an API it basically is webscraping from the port-monitor page. The scraper logs itself in and uses the returned cookie to continue scraping.

⁠Known bugs

this whole construct is super fragile, sometimes the switch doesn't play nice and you get "banned" for around 5 minutes. it often continues.

⁠Usage

the scraper expects two ENV variables:

KeyValue
REMOTE_IPthis is the IP of the switch
PASSWORDthe password used to authenticate against the webUI

the prometheus endpoint is at :8080/metrics.

⁠Finally

No guarantees, no warranty, no nothing. You are on your own. If you have suggestions I'm happy for pull requests. It may take a super long time till I respond. Please don't file issues, I do this in my spare time. Feel free to fork :)

No Maintenance Intended

Tag summary

Content type

Image

Digest

sha256:8c79370db…

Size

7.5 MB

Last updated

about 2 months ago

docker pull transacid/switch-scraper:v0.0.33