remotewrite

package
v1.76.0-cluster Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRelabelConfigs added in v1.35.6

func CheckRelabelConfigs() error

CheckRelabelConfigs checks -remoteWrite.relabelConfig and -remoteWrite.urlRelabelConfig.

func Init

func Init()

Init initializes remotewrite.

It must be called after flag.Parse().

Stop must be called for graceful shutdown.

func InitSecretFlags added in v1.42.0

func InitSecretFlags()

InitSecretFlags must be called after flag.Parse and before any logging.

func MultitenancyEnabled added in v1.64.0

func MultitenancyEnabled() bool

MultitenancyEnabled returns true if -remoteWrite.multitenantURL is specified.

func Push

func Push(wr *prompbmarshal.WriteRequest)

Push sends wr to remote storage systems set via `-remoteWrite.url`.

Note that wr may be modified by Push due to relabeling and rounding.

func PushWithAuthToken added in v1.64.0

func PushWithAuthToken(at *auth.Token, wr *prompbmarshal.WriteRequest)

PushWithAuthToken sends wr to remote storage systems set via `-remoteWrite.multitenantURL`.

Note that wr may be modified by Push due to relabeling and rounding.

func Stop

func Stop()

Stop stops remotewrite.

It is expected that nobody calls Push during and after the call to this func.

Types

This section is empty.

Jump to

Keyboard shortcuts

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