Sign inSign up

tolleiv/selenium-statsd-exporter

By tolleiv

•Updated about 9 years ago

A small containerized script to export selenium server state to statsd

Image
0

1.1K

tolleiv/selenium-statsd-exporter repository overview

⁠selenium-statsd-exporter

The script is used to analyse the Selenium grid console and export queue size, available and busy browsers to Statsd. In it's original use it is used along with the statsd_exporter⁠ of Prometheus.

⁠Docker usage

docker pull prom/statsd-exporter
docker build -t selenium-watch .
docker run -d -p 9102:9102 -p 9125:9125 -p 9125:9125/udp \
    -v $PWD/statsd_mapping.conf:/tmp/statsd_mapping.conf \
    --name statsd-exporter \
    prom/statsd-exporter -statsd.mapping-config=/tmp/statsd_mapping.conf

docker -d --link statsd-exporter \
       -e STATSD_HOST=statsd-exporter \
       -e STATSD_PORT=9125 \
       -e CONSOLE_URI=http://your.selenium.example:4444/grid/console \
       selenium-watch

The related metrics can then be found under:

http://localhost:9102/metrics

⁠License

MIT License

Tag summary

Content type

Image

Digest

Size

3.6 MB

Last updated

about 9 years ago

docker pull tolleiv/selenium-statsd-exporter