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{}
Config controls the Agent integration.
func (*Config) InstanceKey ¶
InstanceKey returns the hostname of the machine.
func (*Config) NewIntegration ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.