Sign inSign up

freeman1988/dvb_metrics_exporter

By freeman1988

Updated almost 6 years ago

Image
0

345

freeman1988/dvb_metrics_exporter repository overview

dvb_exporter

Docker Build Statu Go Report Card

Prometheus exporter for DVB adapters using https://github.com/ziutek/dvb

This is a simple server that takes all DVB adapters from /dev/dvb and scrapes stats from each adapter and exports them via HTTP for Prometheus consumption.

Getting Started

Exported metrics
  • dvb_signal: Signal strength in %
  • dvb_snr: SNR in %
  • dvb_ber: BER - amount of errors
  • dvb_lock: Lock (1 or 0)

Each metric has labels adapter (adapter number).

Additionally, a dvb_up metric reports whether the exporter is running (and in which version).

Shell

To run the exporter:

$ ./dvb_exporter [options]

Help on flags:

$ ./dvb_exporter --help

Getting the results for testing via cURL:

$ curl http://localhost:9437/metrics
Docker

https://hub.docker.com/r/freeman1988/dvb_metrics_exporter

To run the dvb_exporter as a Docker container, run:

$ docker run -p 9437:9437 -v /dev/dvb/:/dev/dvb/:ro --name dvb_exporter freeman1988/dvb_metrics_exporter

Contribute

Simply fork and create a pull-request. We'll try to respond in a timely fashion.

Tag summary

Content type

Image

Digest

Size

8 MB

Last updated

almost 6 years ago

docker pull freeman1988/dvb_metrics_exporter