Documentation
¶
Index ¶
Constants ¶
View Source
const ( SummaryURL = "/info.html" SoftwareURL = "/cmswinfo.html" StatsURL = "/statsifc.html" )
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns an http.Handler that serves Prometheus metrics for arris devices. The dial function specifies how to connect to a device with the specified address on each HTTP request.
Each HTTP request must contain a "target" query parameter which indicates the network address of the device which should be scraped for metrics. If no port is specified, the arris device default of 65001 will be used.
Types ¶
type Collector ¶
type Collector struct {
ModemInfo *prometheus.Desc
UptimeSecondsTotal *prometheus.Desc
RxBytesTotal *prometheus.Desc
RxPacketsTotal *prometheus.Desc
RxErrorsTotal *prometheus.Desc
RxDropsTotal *prometheus.Desc
TxBytesTotal *prometheus.Desc
TxPacketsTotal *prometheus.Desc
TxErrorsTotal *prometheus.Desc
TxDropsTotal *prometheus.Desc
// contains filtered or unexported fields
}
Collector is a prometheus.Collector for a TC4400 modem.
func NewCollector ¶
NewCollector constructs a collector using a device.
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
type Info ¶
type Info struct {
NetworkSpecification string
SerialNumber string
BoardID string
BuildTimestamp time.Time
HardwareVersion string
SoftwareVersion string
LinuxVersion string
Uptime time.Duration
SystemTime time.Time
IPv4Addr net.IP
IPv6Addr net.IP
ModemHardwareAddr net.HardwareAddr
LANHardwareAddr net.HardwareAddr
}
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tc4400_exporter
command
Command arris_exporter implements a Prometheus exporter for Arris cable modem devices.
|
Command arris_exporter implements a Prometheus exporter for Arris cable modem devices. |
Click to show internal directories.
Click to hide internal directories.