Skip to content

TSDuck analyser values exported as metrics in Prometheus

License

Notifications You must be signed in to change notification settings

grf1/tsduck-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

TSDuck analyser values exported as metrics in Prometheus

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published