Skip to content

virtUOS/coturn_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coturn Exporter

Tests whether a given TURN server is working and exports the result as a Prometheus metric

How to Run It

docker build -t coturn_exporter .
docker run -e IP=1.2.3.4 -e PORT=1234 -e SECRET=qwerty -e INTERVAL=600 -e LOGLEVEL=INFO -p 127.0.0.1:80:9524 coturn_exporter

All environment variables except IP are optional. INTERVAL (how many seconds to wait between checks) defaults to 900. IP, PORT, and SECRET refer to the TURN server to be checked. LOGLEVEL can be one of DEBUG, INFO, WARNING, ERROR, or CRITICAL and defaults to WARNING.

Output

Metrics are exported on port 9524. They will include something like the following (plus some metrics added by the Prometheus Python client):

# HELP turn_server_state the state of the TURN server
# TYPE turn_server_state gauge
turn_server_state{turn_server_state="ok"} 1.0
turn_server_state{turn_server_state="not_ok"} 0.0
turn_server_state{turn_server_state="unknown"} 0.0

About

Prometheus exporter to probe if coturn is working

Resources

License

Stars

Watchers

Forks

Releases

No releases published