package
0.44.2
Repository: https://github.com/grafana/agent.git
Documentation: pkg.go.dev

# Packages

Package configstore abstracts the concepts of where instance files get retrieved.

# Functions

FilterGroups takes a set of DiscoveredGroups as input and filters out any Target that is not running on the host machine provided by host.
Hostname retrieves the hostname identifying the machine the process is running on.
MarshalConfig marshals an instance config based on a provided content type.
MarshalConfigToWriter marshals a config to an io.Writer.
New creates a new Instance with a directory for storing the WAL.
NewBasicManager creates a new BasicManager.
NewGroupManager creates a new GroupManager for combining instances of the same "group.".
NewHostFilter creates a new HostFilter.
NewModalManager creates a new ModalManager.
UnmarshalConfig unmarshals an instance config from a reader based on a provided content type.

# Variables

DefaultBasicManagerConfig is the default config for the BasicManager.
Default configuration values.
DefaultGlobalConfig holds default global settings to be used across all instances.
Types of instance modes.
ErrNotReady is returned when the scrape manager is used but has not been initialized yet.
HostFilterLabelMatchers are the set of labels that will be used to match against an incoming target.
Types of instance modes.
Types of instance modes.

# Structs

BasicManager creates a new BasicManager, implementing the Manager interface.
BasicManagerConfig controls the operations of a BasicManager.
Config is a specific agent that runs within the overall Prometheus agent.
ErrInvalidUpdate is returned whenever Update is called against an instance but an invalid field is changed between configs.
GlobalConfig holds global settings that apply to all instances by default.
A GroupManager wraps around another Manager and groups all incoming Configs into a smaller set of configs, causing less managed instances to be spawned.
HostFilter acts as a MITM between the discovery manager and the scrape manager, filtering out discovered targets that are not running on the same node as the agent itself.
Instance is an individual metrics collector and remote_writer.
MockManager exposes methods of the Manager interface as struct fields.
ModalManager runs instances by either grouping them or running them fully separately.
NoOpInstance implements the Instance interface in pkg/prom but does not do anything.

# Interfaces

ManagedInstance is implemented by Instance.
Manager represents a set of methods for manipulating running instances at runtime.

# Type aliases

DiscoveredGroups is a set of groups found via service discovery.
Factory should return an unstarted instance given some config.
Mode controls how instances are created.