Since I haven’t used logstash for a very long time, the project has been abandoned.
Use the fork https://github.com/SAP/prometheus-logstash-exporter. Thanks to @LHozzan for continuing to work on the project.
Prometheus exporter for metrics provided by Node Stats API of Logstash.
go get gitlab.com/alxrem/prometheus-logstash-exporter
cd ${GOPATH-$HOME/go}/src/gitlab.com/alxrem/prometheus-logstash-exporter
go build
./prometheus-logstash-exporter <flags>
To see all available configuration flags:
./prometheus-logstash-exporter -h
Binary builds are available on the releases page of Gitlab project.
Packages for latest Debian and Ubuntu releases are available on PackageCloud.
Docker images are available at Docker Hub. Pull the latest version with
docker pull alxrem/prometheus-logstash-exporter