Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TypeStr is the unique identifier for the Prometheus remote write exporter. // TODO: Rename to walexporter (?). Remote write makes no sense, it appends to a WAL. TypeStr = "remote_write" )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ExporterFactory
NewFactory returns a new factory for the Prometheus remote write processor.
Types ¶
type Config ¶
type Config struct { config.ExporterSettings `mapstructure:",squash"` ConstLabels prometheus.Labels `mapstructure:"const_labels"` Namespace string `mapstructure:"namespace"` PromInstance string `mapstructure:"metrics_instance"` // StaleTime is the duration after which a series is considered stale and will be removed. StaleTime time.Duration `mapstructure:"stale_time"` // LoopInterval is the duration after which the exporter will be checked for new data. // New data is flushed to a WAL. LoopInterval time.Duration `mapstructure:"loop_interval"` }
Config holds the configuration for the Prometheus remote write processor.
Click to show internal directories.
Click to hide internal directories.