Documentation
¶
Overview ¶
Package sematextexporter sends metrics and logs to sematext cloud.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for the Sematext metrics exporter.
Types ¶
type Config ¶
type Config struct {
ClientConfig confighttp.ClientConfig `mapstructure:",squash"`
BackOffConfig configretry.BackOffConfig `mapstructure:"retry_on_failure"`
QueueSettings configoptional.Optional[exporterhelper.QueueBatchConfig] `mapstructure:"sending_queue"`
// Region specifies the Sematext region the user is operating in
// Options:
// - EU
// - US
Region string `mapstructure:"region"`
// MetricsConfig defines the configuration specific to metrics
MetricsConfig MetricsConfig `mapstructure:"metrics"`
// LogsConfig defines the configuration specific to logs
LogsConfig LogsConfig `mapstructure:"logs"`
}
type LogsConfig ¶ added in v0.125.0
type MetricsConfig ¶ added in v0.122.0
type MetricsConfig struct {
// App token is the token of Sematext Monitoring App to which you want to send the metrics.
AppToken string `mapstructure:"app_token"`
// MetricsEndpoint specifies the endpoint for receiving metrics in Sematext
MetricsEndpoint string `mapstructure:"-"`
// MetricsSchema indicates the metrics schema to emit to line protocol.
// Default: telegraf-prometheus-v2
MetricsSchema string `mapstructure:"-"`
// PayloadMaxLines is the maximum number of line protocol lines to POST in a single request.
PayloadMaxLines int `mapstructure:"payload_max_lines"`
// PayloadMaxBytes is the maximum number of line protocol bytes to POST in a single request.
PayloadMaxBytes int `mapstructure:"payload_max_bytes"`
}
Click to show internal directories.
Click to hide internal directories.