Varnishstatbeat is an Elastic beat that collects Stats data from a Varnish Shared Memory file and ships it to Elasticsearch.
Varnishstatbeat uses vago.
If you are looking to run older version of Varnish check for the corresponding branch.
- Go >= 1.14
- pkg-config
- varnish-dev >= 6.0
You will also need to set PKG_CONFIG_PATH
to the directory where
varnishapi.pc
is located before running go get
. For example:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
go get github.com/phenomenes/varnishstatbeat
Install and run Elasticsearch.
Run varnishstatbeat
with debugging output enabled:
cd $GOPATH/src/github.com/phenomenes/varnishstatbeat
varnishstatbeat -c varnishstatbeat.yml -e -d "*"
Additionally you can install Kibana to visualize the data.
docker-compose up --build
The above command will start the following containers:
- Kibana
- Varnishlogbeat / Varnish
- Nginx
- Elasticsearch