# README
package autodiscovery
This package is a core piece of the agent. It is responsible for collecting check configurations from different sources (see package config providers) and then schedule or unschedule integration configurations with the help of the schedulers.
It is also responsible for listening to container-related events and resolve template configurations that would match them.
AutoConfig
As a central component, AutoConfig
owns and orchestrates several key modules:
- it owns a reference to a
MetaScheduler
that dispatches integrations configs for scheduling or unscheduling to all registered schedulers. There are 3 scheduler implementations: checks scheduler and logs scheduler in the agent, and cluster checks dispatcher in the cluster agent. - it stores a list of
ConfigProviders
and poll them according to their poll policy viaconfigPollers
- it owns
ServiceListener
used to listen to lifecycle events of containers and other kind of services like network devices, kubernetes Endpoints and Service objects - it uses the
ConfigResolver
that resolves a configuration template to an actual configuration based on a service matching the template. A template matches a service if they have in common at least one AD identifier element - it uses a
store
component to safely store and retrieve all data and mappings needed for the autodiscovery lifecycle
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
GetConfigErrors gets the config errors.
GetResolveWarnings get the resolve warnings/errors.
NewAutoConfig creates an AutoConfig instance.
NewTemplateCache creates a new cache.
# Structs
AutoConfig is responsible to collect integrations configurations from different sources and then schedule or unschedule them.
TemplateCache is a data structure to store configuration templates.