prometheus_remote_write

package
v1.10.4-cortex Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: MIT Imports: 14 Imported by: 0

README

Prometheus Remote Write Output Plugin

This plugin sends metrics to services which speak the Prometheus Remote Write format, such as Cortex. Note Prometheus does not accept writes in this format; it only sends them.

Configuration

# Send metrics on Prometheus
[[outputs.prometheus_remote_write]]
  ## URL to send Prometheus remote write requests to.
  url = "http://localhost/push"

  ## HTTP asic auth credentials (optional).
  # basic_username = "username"
  # basic_password = "pa55w0rd"

	## Optional Bearer token
	# bearer_token = "bearer_token"

  ## Disable retry for 4XX http status codes
  # retry_for_client_errors = false

TODO

  • Handle summaries and histograms.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusRemoteWrite

type PrometheusRemoteWrite struct {
	URL                  string `toml:"url"`
	BearerToken          string `toml:"bearer_token"`
	BasicUsername        string `toml:"basic_username"`
	BasicPassword        string `toml:"basic_password"`
	RetryForClientErrors bool   `toml:"retry_for_client_errors"`
	tls.ClientConfig
	// contains filtered or unexported fields
}

func (*PrometheusRemoteWrite) Close

func (p *PrometheusRemoteWrite) Close() error

func (*PrometheusRemoteWrite) Connect

func (p *PrometheusRemoteWrite) Connect() error

func (*PrometheusRemoteWrite) Description

func (p *PrometheusRemoteWrite) Description() string

func (*PrometheusRemoteWrite) SampleConfig

func (p *PrometheusRemoteWrite) SampleConfig() string

func (*PrometheusRemoteWrite) Write

func (p *PrometheusRemoteWrite) Write(metrics []telegraf.Metric) error

Jump to

Keyboard shortcuts

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