Documentation
¶
Overview ¶
Package agent is an "example" integration that has very little functionality, but is still useful in practice. The Agent integration re-exposes the Agent's own metrics endpoint and allows the Agent to scrape itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Common common.MetricsConfig `yaml:",inline"`
}
Config controls the Agent integration.
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults(globals integrations.Globals) error
ApplyDefaults applies runtime-specific defaults to c.
func (*Config) Identifier ¶
func (c *Config) Identifier(globals integrations.Globals) (string, error)
Identifier uniquely identifies this instance of Config.
func (*Config) Name ¶
func (c *Config) Name() string
Name returns the name of the integration that this config represents.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(l log.Logger, globals integrations.Globals) (integrations.Integration, error)
NewIntegration converts this config into an instance of an integration.
Click to show internal directories.
Click to hide internal directories.