Sign inSign up

hsnodgrass3/prom_cm1000_exporter

By hsnodgrass3

•Updated over 4 years ago

A Prometheus metrics exporter for the Netgear CM1000 modem

Image
0

2.5K

hsnodgrass3/prom_cm1000_exporter repository overview

⁠prom_cm1000_exporter

A metric exporter for the Netgear CM1000 modem.

⁠Usage

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.

⁠Environment variables

  • 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.

⁠Running the container with envvars

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

⁠YAML

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

⁠Running the container with a config file

docker run -p 9257:9257 -v /path/to/local.yaml:/usr/local/prom_cm1000.yaml hsnodgrass3/prom_cm1000_exporter

Tag summary

Content type

Image

Digest

Size

23.2 MB

Last updated

over 4 years ago

docker pull hsnodgrass3/prom_cm1000_exporter