Skip to content

Colstuwjx/elastic-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Elastic remote storage adapter for prometheus.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages