Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 988 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 988 Bytes

Elasticsearch Remote storage adapter

Elastic write adapter for Prometheus remote storage, more details refer to: Prometheus remote storage documentation

It will receive prometheus samples and send batch requests to Elastic

Building

go build

Running

./elastic-adapter -elasticsearch-url=http://localhost:9200/ -elasticsearch.max-retries=1 -elasticsearch.index-perfix=prometheus -elasticsearch.type=prom-metric

To show all flags:

./elastic-adapter -h

Configuring Prometheus

To configure Prometheus to send samples to this binary, add the following to your prometheus.yml:

# Remote write configuration.
remote_write:
  - url: "http://localhost:9201/write"

# Remote read configuration (TODO: remote read for elastic not implement yet).
remote_read:
  - url: "http://localhost:9201/read"