arrisexporter

package module
v0.0.0-...-7f6ab5b Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: MIT Imports: 6 Imported by: 0

README

arris_exporter Build Status GoDoc Go Report Card

Command arris_exporter implements a Prometheus exporter for Arris cable modem devices. MIT Licensed.

Configuration

The arris_exporter's Prometheus scrape configuration (prometheus.yml) is configured in a similar way to the official Prometheus blackbox_exporter.

The targets list under static_configs should specify the addresses of any Arris devices which should be monitored by the exporter. The address of the arris_exporter itself must be specified in relabel_configs as well.

scrape_configs:
  - job_name: 'arris'
    static_configs:
      - targets:
        - '192.168.100.1' # arris cable modem.
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: '127.0.0.1:9393' # arris_exporter.

Documentation

Overview

Package arrisexporter implements a Prometheus exporter for Arris cable modem devices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(dial func(addr string) (*arris.Client, error)) http.Handler

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

This section is empty.

Directories

Path Synopsis
cmd
arris_exporter
Command arris_exporter implements a Prometheus exporter for Arris cable modem devices.
Command arris_exporter implements a Prometheus exporter for Arris cable modem devices.

Jump to

Keyboard shortcuts

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