Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.26 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.26 KB

TSDuck Prometheus

TSDuck Prometheus is a tool to export values from a TSDuck analyser pipeline into Prometheus, to enable you to build realtime Grafana dashboards for monitoring of MPEG-TS transport streams

The metrics exported try to cover most of ETR290 Priority 1

Using this tool

Compiling

Make sure you have TSDuck and Go version >1.18 installed, and can run 'tsp' commands on your machine. Clone this repo and build using the following commands...

go mod tidy
go build -o /tsduck-prometheus
./tsduck-prometheus 225.0.0.1:20000,172.0.0.1,My_Service

Docker

A Dockerfile is included on this repository, it's not perfect at the moment (the image size could likely be smaller) but it works

Local to the Dockerfile, the following commands can be used to get started using Docker with host networking mode

docker build -t tsduck-prometheus .
docker run -d --network host tsduck-prometheus 225.0.0.1:20000,172.0.0.1,My_Service

Example Grafana Dashboard

An example dashboard is included on the repository to get you started (see dashboard.json)

screencapture-upvideodev-3000-d-KgOonCL4k-tsduck-prometheus-2023-04-12-15_36_31