Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct { exporterhelper.TimeoutSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. // OpenTSDB Endpoint confighttp.HTTPClientSettings `mapstructure:",squash"` // The maximum number of datapoints to send to the OpenTSDB backend BatchSize int `mapstructure:"batch_size"` // The maximum number of tags per datapoint MaxTags int `mapstructure:"max_tags"` // Tags to skip SkipTags []string `mapstructure:"skip_tags"` // 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"` }
type HttpSerializer ¶
type HttpSerializer struct {
// contains filtered or unexported fields
}
func NewHttpSerializer ¶
func NewHttpSerializer(logger *zap.Logger, maxTags int, skipTags []string) *HttpSerializer
type Metric ¶
type OpenTSDBExporter ¶
type OpenTSDBExporter struct {
// contains filtered or unexported fields
}
func NewOpenTSDBExporter ¶
func NewOpenTSDBExporter(config *Config, set exporter.CreateSettings, logger *zap.Logger) *OpenTSDBExporter
func (*OpenTSDBExporter) PushMetrics ¶
Click to show internal directories.
Click to hide internal directories.