Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trustpilot/beat-exporter

Elastic beat-exporter for Prometheus
https://github.com/trustpilot/beat-exporter

filebeat metricbeat prometheus-exporter public

Last synced: about 2 months ago
JSON representation

Elastic beat-exporter for Prometheus

Awesome Lists containing this project

README

        

# beat-exporter for Prometheus ![](https://github.com/trustpilot/beat-exporter/workflows/test-and-build/badge.svg)

[![Docker Pulls](https://img.shields.io/docker/pulls/trustpilot/beat-exporter.svg?maxAge=604800)](https://hub.docker.com/r/trustpilot/beat-exporter/)

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

Current coverage
-

* filebeat
* metricbeat
* 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