prometheus-elasticsearch-adapter

command module
v0.0.0-...-e58a317 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

Elasticsearch Remote storage adapter

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

It will receive prometheus samples and send batch requests to Elastic

dependencies using dep

dep init

Building

go build

Running

./prometheus-elasticsearch-adapter

Running with Docker Compose

docker-compose up

config.yaml file:

elasticsearch.url: http://localhost:9200
elasticsearch.max.retries: 1
elasticsearch.index.perfix: prometheus
elasticsearch.type: prom-metric
elasticsearch.aws.service: false #Indentifies if we are using AWS ElasticSearchService
web.listen.addr: :9201
web.telemetry.path: /metrics

# If we need to use AWS ElasticSearch Service, we must toggle the config 'elasticsearch.aws.service' to true e export your AWS Credentials: 
# export AWS_ACCESS_KEY=YourAccessKey
# export AWS_SECRET_KEY=YourSecretKey

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://app:9201/write"

# Remote read configuration
remote_read:
  - url: "http://app:9201/read"

Documentation

Overview

The main package for the Prometheus server executable.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL