Documentation ¶
Overview ¶
Package otlpmqttexporter exports data by using the OTLP format to an MQTT endpoint.
Index ¶
- func CreateConfig(addr, id, key, channel, pktvisor, metricsTopic string) config.Exporter
- func CreateConfigClient(client mqtt.Client, metricsTopic, pktvisor string) config.Exporter
- func CreateDefaultConfig() config.Exporter
- func CreateDefaultSettings(logger *zap.Logger) component.ExporterCreateSettings
- func CreateMetricsExporter(ctx context.Context, set component.ExporterCreateSettings, cfg config.Exporter) (component.MetricsExporter, error)
- func NewFactory() component.ExporterFactory
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfig ¶
func CreateConfigClient ¶
func CreateDefaultConfig ¶
func CreateDefaultSettings ¶
func CreateDefaultSettings(logger *zap.Logger) component.ExporterCreateSettings
func CreateMetricsExporter ¶
func CreateMetricsExporter( ctx context.Context, set component.ExporterCreateSettings, cfg config.Exporter, ) (component.MetricsExporter, error)
func NewFactory ¶
func NewFactory() component.ExporterFactory
NewFactory creates a factory for OTLP exporter. Reducing the scope to just Metrics since it is our use-case
Types ¶
type Config ¶
type Config struct { config.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` // Add Client directly to only re-use an existing connection - requires "github.com/eclipse/paho.mqtt.golang" Client mqtt.Client // Configuration to connect to MQTT Address string `mapstructure:"address"` Id string `mapstructure:"id"` Key string `mapstructure:"key"` ChannelID string `mapstructure:"channel_id"` TLS bool `mapstructure:"enable_tls"` MetricsTopic string `mapstructure:"metrics_topic"` // Specific for ORB Agent PktVisorVersion string `mapstructure:"pktvisor_version"` }
Config defines configuration for OTLP/HTTP exporter.
Click to show internal directories.
Click to hide internal directories.