Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Enrico204/dd-wrt-prometheus-exporter

Repository files navigation

DD-WRT Prometheus exporter

This prometheus exporter uses some web APIs for DD-WRT in order to collect some data. It can be used in place of SNMP in routers/releases where SNMP is not available anymore.

Tested with DD-WRT v3.0-r46527 std in WRT54GL.

Note: this is a work in progress. Data parsing is not stable at the moment.

Usage

./dd-wrt-exporter -url http://192.168.0.1 -username admin -password admin -interfaces eth0,eth1,br0

Customize all parameters according your needs. You can use also these environment variables:

  • DDWRT_URL for router URL
  • DDWRT_USERNAME for router username
  • DDWRT_PASSWORD for router password
  • DDWRT_INTERFACES for the interface list (see above)

The code supports loading those variables from a .env file.

Issues / contributions

Please refer to the main repo on GitLab: https://gitlab.com/Enrico204/dd-wrt-prometheus-exporter/

License

See LICENSE file.

About

DD-WRT Prometheus Exporter, written in Go. Mirror of https://gitlab.com/Enrico204/dd-wrt-prometheus-exporter/

Topics

Resources

License

Stars

Watchers

Forks

Languages