sb8200exporter

package module
v0.0.0-...-9cbcacb Latest Latest
Warning

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

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

README

sb8200_expoerter

Arris SB8200 Prometheus Exporter

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 SB8200 modem

func New

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

New creates a new SB8200 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

	UpstreamWidth *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