Documentation
¶
Overview ¶
Package otlpmqttexporter exports data by using the OTLP format to an MQTT endpoint.
Index ¶
- func CreateConfig(addr, id, key, channel, pktvisor, topic string, ...) component.Config
- func CreateConfigClient(client *mqtt.Client, topic, pktvisor string, ...) component.Config
- func CreateDefaultConfig() component.Config
- func CreateDefaultSettings(logger *zap.Logger) exporter.CreateSettings
- func CreateLogsExporter(ctx context.Context, set exporter.CreateSettings, cfg component.Config) (exporter.Logs, error)
- func CreateMetricsExporter(ctx context.Context, set exporter.CreateSettings, cfg component.Config) (exporter.Metrics, error)
- func CreateTracesExporter(ctx context.Context, set exporter.CreateSettings, cfg component.Config) (exporter.Traces, error)
- func NewFactory() exporter.Factory
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfig ¶
func CreateConfig(addr, id, key, channel, pktvisor, topic string, bridgeService otel.AgentBridgeService) component.Config
func CreateConfigClient ¶
func CreateDefaultConfig ¶
func CreateDefaultSettings ¶
func CreateDefaultSettings(logger *zap.Logger) exporter.CreateSettings
func CreateLogsExporter ¶
func CreateMetricsExporter ¶
func CreateTracesExporter ¶ added in v0.29.0
func NewFactory ¶
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 { exporterhelper.TimeoutSettings `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"` Topic string `mapstructure:"topic"` // Specific for ORB Agent PktVisorVersion string `mapstructure:"pktvisor_version"` OrbAgentService otel.AgentBridgeService }
Config defines configuration for OTLP/HTTP exporter.
Click to show internal directories.
Click to hide internal directories.