Prometheus exporter for the modem connection status of UPC Connect Boxes
Project description
Connectbox Prometheus
A Prometheus exporter for the modem connection status of UPC Connect Boxes (used by Unitymedia in Germany, Irish Virgin Media, Ziggo in the Netherlands, and probably several others).
Makes thorough use of python-connect-box by @fabaff (thanks!).
Installation
You need python3.6 or higher. On your Prometheus server host, install the exporter via
pip3 install connectbox-prometheus
Usage
This exporter queries exactly one Connect Box as a remote target.
To get started, modify config.yml
from this repository or create your own with the following content:
# Connect Box IP address
ip_address: 192.168.0.1
# Connect Box web interface password
password: WhatEverYourPasswordIs
# port on which this exporter exposes metrics
exporter_port: 9705
Then run connectbox_exporter path/to/your/config.yml
Prometheus Configuration
Add the following to your prometheus.yml
:
scrape_configs:
- job_name: 'connectbox'
static_configs:
- targets:
- localhost:9705
Exported Metrics
Metric name | Description |
---|---|
connectbox_up |
Connect Box reachable yes/no |
connectbox_num_devices |
Number of connected devices |
connectbox_downstream_frequency_hz |
Downstream channel frequency |
connectbox_downstream_power_level_dbmv |
Downstream channel power level in dBmV |
connectbox_downstream_modulation_qam |
Downstream channel modulation |
connectbox_downstream_signal_to_noise_db |
Downstream channel signal-to-noise in dB |
connectbox_downstream_errors_pre_rs_total |
Downstream channel errors before Reed-Solomon correction |
connectbox_downstream_errors_post_rs_total |
Downstream channel errors after Reed-Solomon correction |
connectbox_downstream_qam_locked |
Downstream channel QAM lock status |
connectbox_downstream_freq_locked |
Downstream channel frequency lock status |
connectbox_downstream_mpeg_locked |
Downstream channel MPEG lock status |
connectbox_upstream_frequency_hz |
Upstream channel frequency |
connectbox_upstream_power_level_dbmv |
Upstream channel power level in dBmV |
connectbox_upstream_symbol_rate_ksps |
Upstream channel symbol rate |
connectbox_upstream_modulation_qam |
Upstream channel modulation |
connectbox_upstream_timeouts_total |
Upstream channel timeouts |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for connectbox-prometheus-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4181f2cbf23a558065d8ba4e80190bb149930165966cea3a753e5fba397122b3 |
|
MD5 | 8556901690e4f4cff82f31ae62ca8eb5 |
|
BLAKE2b-256 | 8ecc8b25f2d60706e790d6c4f6c9f60e519b5e6b8a8319e972e017c9eaec9a2a |
Hashes for connectbox_prometheus-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f33d3f9b11118f91b86b9376f6d8d9881048433d1a12762ea10016fb8af180 |
|
MD5 | 5276e00044e5e56fb157955f0a6dddd3 |
|
BLAKE2b-256 | c0cb04ee840a27f6f4bb53ce00fa27b67032ff6d8fc25cc61a2680ada4a377e0 |