elastic-adapter

command module
v0.0.0-...-54b70d7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

README

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"

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