Documentation
¶
Overview ¶
Package lokiexporter implements an exporter that sends log data to Loki.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ExporterFactory
NewFactory creates a factory for Loki exporter.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. confighttp.HTTPClientSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` // TenantID defines the tenant ID to associate log streams with. TenantID string `mapstructure:"tenant_id"` // Labels defines how labels should be applied to log streams sent to Loki. Labels LabelsConfig `mapstructure:"labels"` }
Config defines configuration for Loki exporter.
type LabelsConfig ¶ added in v0.21.0
type LabelsConfig struct { // Attributes are the attributes that are allowed to be added as labels on a log stream. Attributes map[string]string `mapstructure:"attributes"` }
LabelsConfig defines the labels-related configuration
Click to show internal directories.
Click to hide internal directories.