Prometheus Pusher srcape from the metrics available in Logstash since version 5.0, and push prometheus PushGateway.
go get -u github.com/klnchu/logstash_pusher
cd /github.com/klnchu/logstash_pusher
make
./logstash_pusher -exporter.bind_address :1234 -logstash.endpoint http://localhost:1235
Flag | Description | Default |
---|---|---|
-exporter.bind_address | Exporter bind address | :9198 |
-logstash.endpoint | Metrics endpoint address of logstash | http://localhost:9600 |
-intervel.scrape | Intervel Scrape, when less 0, stop the processing | 10 |
PUSH_GATEWAYE_ENDPOINT = 'http://pushgateway.simple.com' JOB_NAME = 'logstash' # options
- Node metrics