Skip to content

A Prometheus metrics exporter for the Netgear CM1000 modem

Notifications You must be signed in to change notification settings

hsnodgrass/prom_cm1000_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Prometheus metrics exporter for the Netgear CM1000 modem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published