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 ¶
Config controls the Agent integration.
func (*Config) CommonConfig ¶
CommonConfig returns the common settings shared across all integrations.
func (*Config) Name ¶ added in v0.10.0
Name returns the name of the integration that this config represents.
func (*Config) NewIntegration ¶ added in v0.10.0
func (c *Config) NewIntegration(_ log.Logger) (integrations.Integration, error)
NewIntegration converts this config into an instance of an integration.
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
Integration is the Agent integration. The Agent integration scrapes the Agent's own metrics.
func (*Integration) MetricsHandler ¶ added in v0.14.0
func (i *Integration) MetricsHandler() (http.Handler, error)
MetricsHandler satisfies Integration.RegisterRoutes.
func (*Integration) Run ¶
func (i *Integration) Run(ctx context.Context) error
Run satisfies Integration.Run.
func (*Integration) ScrapeConfigs ¶
func (i *Integration) ScrapeConfigs() []config.ScrapeConfig
ScrapeConfigs satisfies Integration.ScrapeConfigs.