Skip to content

rbagd/beat-exporter

Repository files navigation

beat-exporter for Prometheus

Docker Pulls

Note

This project is a fork of trustpilot/beat-exporter, which has now been archived. Objective was to include APM Server metrics that were proposed in one of the PRs as well as upgrade project dependencies. Credits to authors and contributors of the original project.

Exposes (file|metric)beat statistics from beats statistics endpoint to prometheus format, automaticly configuring collectors for apporiate beat type.

Current coverage

  • filebeat
  • metricbeat
  • apm-server - partial
  • packetbeat - partial
  • auditbeat - partial

Setup

Edit your *beat configuration and add following:

http:
  enabled: true
  host: localhost
  port: 5066

This will expose (file|metrics|*)beat http endpoint at given port.

Run beat-exporter:

$ ./beat-exporter

beat-exported default port for prometheus is: 9479

Point your Prometheus to 0.0.0.0:9479/metrics

Configuration reference

$ ./beat-exporter -help
Usage of ./beat-exporter:
  -beat.system
    	Expose system stats
  -beat.timeout duration
    	Timeout for trying to get stats from beat. (default 10s)
  -beat.uri string
    	HTTP API address of beat. (default "http://localhost:5066")
  -tls.certfile string
    	TLS certs file if you want to use tls instead of http
  -tls.keyfile string
    	TLS key file if you want to use tls instead of http
  -version
    	Show version and exit
  -web.listen-address string
    	Address to listen on for web interface and telemetry. (default ":9479")
  -web.telemetry-path string
    	Path under which to expose metrics. (default "/metrics")

Contribution

Please use pull requests, issues

About

Elastic beat-exporter for Prometheus

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors