Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWith ¶ added in v1.110.29
func InitWith(c *Config)
InitWith must be called after logger.Init Supersedes command-line flags related to pushmetrics and initializes pushmetrics with the given config. This is needed for vmctl integration, see: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10375
func Stop ¶ added in v1.87.13
func Stop()
Stop stops the periodic push of metrics. It is important to stop the push of metrics before disposing resources these metrics attached to. See related https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5548
Stop must be called after Init.
func StopAndPush ¶ added in v1.110.20
func StopAndPush()
StopAndPush stops the periodic push of metrics and performs the final push attempt. It is recommended using StopAndPush for short-living applications, like vmbackup or vmrestore. See Stop.
StopAndPush must be called after Init.