Documentation ¶
Overview ¶
Package prometheusremotewriteexporter sends metrics data to Prometheus Remote Write (PRW) endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new Prometheus Remote Write exporter.
Types ¶
type Config ¶
type Config struct { TimeoutSettings exporterhelper.TimeoutConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. configretry.BackOffConfig `mapstructure:"retry_on_failure"` // prefix attached to each exported metric name // See: https://prometheus.io/docs/practices/naming/#metric-names Namespace string `mapstructure:"namespace"` // QueueConfig allows users to fine tune the queues // that handle outgoing requests. RemoteWriteQueue RemoteWriteQueue `mapstructure:"remote_write_queue"` // ExternalLabels defines a map of label keys and values that are allowed to start with reserved prefix "__" ExternalLabels map[string]string `mapstructure:"external_labels"` ClientConfig confighttp.ClientConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. // maximum size in bytes of time series batch sent to remote storage MaxBatchSizeBytes int `mapstructure:"max_batch_size_bytes"` // ResourceToTelemetrySettings is the option for converting resource attributes to telemetry attributes. // "Enabled" - A boolean field to enable/disable this option. Default is `false`. // If enabled, all the resource attributes will be converted to metric labels by default. ResourceToTelemetrySettings resourcetotelemetry.Settings `mapstructure:"resource_to_telemetry_conversion"` WAL *WALConfig `mapstructure:"wal"` // TargetInfo allows customizing the target_info metric TargetInfo *TargetInfo `mapstructure:"target_info,omitempty"` // CreatedMetric allows customizing creation of _created metrics // Deprecated[0.114.0]: The feature doesn't provide the expected behavior. Use Prometheus remote-write v2 to enable sending Created Timestamps. // This feature is planned to be removed in v0.116.0 CreatedMetric *CreatedMetric `mapstructure:"export_created_metric,omitempty"` // AddMetricSuffixes controls whether unit and type suffixes are added to metrics on export AddMetricSuffixes bool `mapstructure:"add_metric_suffixes"` // SendMetadata controls whether prometheus metadata will be generated and sent SendMetadata bool `mapstructure:"send_metadata"` }
Config defines configuration for Remote Write exporter.
type CreatedMetric ¶ added in v0.70.0
type CreatedMetric struct { // Enabled if true the _created metrics could be exported Enabled bool `mapstructure:"enabled"` }
type RemoteWriteQueue ¶
type RemoteWriteQueue struct { // Enabled if false the queue is not enabled, the export requests // are executed synchronously. Enabled bool `mapstructure:"enabled"` // QueueSize is the maximum number of OTLP metric batches allowed // in the queue at a given time. Ignored if Enabled is false. QueueSize int `mapstructure:"queue_size"` // NumWorkers configures the number of workers used by // the collector to fan out remote write requests. NumConsumers int `mapstructure:"num_consumers"` }
RemoteWriteQueue allows to configure the remote write queue.
type TargetInfo ¶ added in v0.59.0
type TargetInfo struct { // Enabled if false the target_info metric is not generated by the exporter Enabled bool `mapstructure:"enabled"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.