A metric exporter for the Netgear CM1000 modem.
There are two ways to configure the exporter: environment variables or a yaml
file. YOU CANNOT MIX THE TWO. If you use envvars, you have to use all envvars and the same with a yaml
file.
PCM_modem_ip
- This envvar should be set to the IP of your modem. Default:192.168.100.1
.PCM_username
- The username to login to your modem. Default:admin
.PCM_password
- The password to log into your modem. REQUIRED.PPE_export_port
- The TCP port the exporter runs on. Default:9527
.PPE_interval
- The interval, in seconds, between scrapes. Default:10
.
docker run -p 9527:9527 -e PCM_modem_ip='192.168.100.1' -e PCM_username='admin' -e PCM_password='hunter2' -e PPE_export_port=9527 -e PPE_interval=10 hsnodgrass3/prom_cm1000_exporter
If you would like to use a YAML file for config, it should be mounted to the container at /usr/local/prom_cm1000.yaml
.
Below is a sample config file:
modem_ip: 192.168.100.1
username: admin
password: hunter2
export_port: 9527
interval: 10
docker run -p 9257:9257 -v /path/to/local.yaml:/usr/local/prom_cm1000.yaml hsnodgrass3/prom_cm1000_exporter