cm600exporter

package module
v0.0.0-...-9814e3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2020 License: MIT Imports: 16 Imported by: 0

README

cm600_exporter

Netgear CM600 Prometheus Exporter

Note

I don't have a CM600 anymore - I upgraded to a SB8200 for DOCSIS 3.1! PRs are always welcome, but I don't have a way to test that they work against an actual modem. If anyone wants to contribute a test case or anything of the sort, PRs are always welcome!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter exports prometheus metrics for a CM600 modem

func New

func New(httpClient *http.Client, url, username, password string) (*Exporter, error)

New creates a new CM600 Exporter Instance

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect gathers the statistics from the specified modem

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe describes the metrics available for this modem

type ModemCollector

type ModemCollector struct {

	// Downstream metrics
	DownstreamFreq *prometheus.GaugeVec

	DownstreamPower *prometheus.GaugeVec

	DownstreamSNR *prometheus.GaugeVec

	DownstreamModulation *prometheus.GaugeVec

	DownstreamCorrecteds *prometheus.GaugeVec

	DownstreamUncorrectables *prometheus.GaugeVec

	UpstreamFreq *prometheus.GaugeVec

	UpstreamPower *prometheus.GaugeVec

	UpstreamSymbolRate *prometheus.GaugeVec
	// contains filtered or unexported fields
}

ModemCollector represents a single group of stats

func NewModemCollector

func NewModemCollector(c *client) *ModemCollector

NewModemCollector creates a new statistics collector

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL