Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/transacid/switch-scraper
a prometheus scraper that gets metrics from a netgear switch
https://github.com/transacid/switch-scraper
gs108ev3 netgear network prometheus prometheus-exporter
Last synced: 14 days ago
JSON representation
a prometheus scraper that gets metrics from a netgear switch
- Host: GitHub
- URL: https://github.com/transacid/switch-scraper
- Owner: transacid
- License: gpl-3.0
- Created: 2024-04-20T14:22:53.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-30T09:19:34.000Z (about 1 month ago)
- Last Synced: 2024-11-30T10:25:06.299Z (about 1 month ago)
- Topics: gs108ev3, netgear, network, prometheus, prometheus-exporter
- Language: Go
- Homepage:
- Size: 122 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
| Key | Value |
| --------- | --------------------------------------------------- |
| REMOTE_IP | this is the IP of the switch |
| PASSWORD | the password used to authenticate against the webUI |
| PORT | the hostPort the scraper should listen on |
| LOCATION | where your switch is physically located |the prometheus endpoint is at `:/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](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)