Sign inSign up

rdsubhas/prometheus-es-adapter

By rdsubhas

Updated over 8 years ago

Prometheus remote storage adapter for Elasticsearch

Image
0

1.1K

rdsubhas/prometheus-es-adapter repository overview

prometheus-es-adapter

Overview

A read and write adapter for prometheus persistent storage

Types

Env VariablesDefaultDescription
ES_URLhttp://localhost:9200Elasticsearch URL
ES_USERElasticsearch User
ES_PASSWORDElasticsearch User Password
ES_WORKERS0Number of batch workers
ES_BATCH_COUNT1000Max items for bulk Elasticsearch insert operation
ES_BATCH_SIZE4096Max size in bytes for bulk Elasticsearch insert operation
ES_BATCH_INTERVAL10Max period in seconds between bulk Elasticsearch insert operations
ES_INDEX_MAXAGE7dMax age of Elasticsearch index before rollover
ES_INDEX_MAXDOCS1000000Max documents in Elasticsearch index before rollover
STATStrueExpose Prometheus metrics endpoint
LISTEN:8080TCP network address to start http listener on
VERSIONDisplay version and exit

Getting started

Contributing

Local development requires Go to be installed. On OS X with Homebrew you can just run brew install go.

Running it then should be as simple as:

$ make build
$ ./bin/prometheus-es-adapter
Testing

make test

Tag summary

Content type

Image

Digest

Size

10.3 MB

Last updated

over 8 years ago

docker pull rdsubhas/prometheus-es-adapter