Documentation ¶
Index ¶
Constants ¶
View Source
const (
TelegrafPrefix = "telegraf_"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdaptedReceiver ¶
type AdaptedReceiver struct {
// contains filtered or unexported fields
}
AdaptedReceiver uses an OTel Scrape Controller to scrape metrics and has three phases: Start: Start the accumulator to initialize the logger and resources metrics Scrape: Gather metrics using the accumulator (e.g CPU https://github.com/influxdata/telegraf/blob/6e924fcd5cc2ce79a024b7275d865d7a19c455ed/plugins/inputs/cpu/cpu.go) Shutdown: Stop the scraper and flush the remaining metrics before shutting down the scraper
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func NewAdapter(telegrafConfig *telegrafconfig.Config) Adapter
type Config ¶
type Config struct { scraperhelper.ControllerConfig `mapstructure:",squash"` // The different name of the plugin, share the similar structure with https://github.com/influxdata/telegraf/pull/6207 AliasName string `mapstructure:"alias_name,omitempty"` }
Click to show internal directories.
Click to hide internal directories.