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
go build
./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
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"