Prometheus exporter for Locust. This exporter was inspired by mbolek/locust_exporter.
This package is available for Docker:
-
Run Locust Master
-
Run Locust Exporter
docker run --net=host tarqld/locust_exporter
The default way to build is:
go get github.com/ilsken/locust_exporter
cd ${GOPATH-$HOME/go}/src/github.com/ilsken/locust_exporter/
go run main.go
-
locust.uri
Address of Locust. Default ishttp://localhost:8089
. -
locust.timeout
Timeout request to Locust. Default is5s
. -
web.listen-address
Address to listen on for web interface and telemetry. Default is:9646
. -
web.telemetry-path
Path under which to expose metrics. Default is/metrics
. -
log.level
Set logging level: one ofdebug
,info
,warn
,error
,fatal
-
log.format
Set the log output target and format. e.g.logger:syslog?appname=bob&local=7
orlogger:stdout?json=true
Defaults tologger:stderr
.
The following environment variables configure the exporter:
-
LOCUST_EXPORTER_URI
Address of Locust. Default ishttp://localhost:8089
. -
LOCUST_EXPORTER_TIMEOUT
Timeout reqeust to Locust. Default is5s
. -
LOCUST_EXPORTER_WEB_LISTEN_ADDRESS
Address to listen on for web interface and telemetry. Default is:9646
. -
LOCUST_EXPORTER_WEB_TELEMETRY_PATH
Path under which to expose metrics. Default is/metrics
.