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 CheckStreamAggrConfigs ¶ added in v1.90.0
func CheckStreamAggrConfigs() error
CheckStreamAggrConfigs checks configs pointed by -remoteWrite.streamAggr.config
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(at *auth.Token, wr *prompbmarshal.WriteRequest)
Push sends wr to remote storage systems set via `-remoteWrite.url`.
If at is nil, then the data is pushed to the configured `-remoteWrite.url`. If at isn't nil, the data is pushed to the configured `-remoteWrite.multitenantURL`.
Note that wr may be modified by Push because of relabeling and rounding.
Types ¶
This section is empty.