package
1.4.3
Repository: https://github.com/grafana/alloy.git
Documentation: pkg.go.dev

# Packages

Package agent is an "example" integration that has very little functionality, but is still useful in practice.
Package apache_http embeds https://github.com/Lusitaniae/apache_exporter.
No description provided by the author
Package autoscrape implements a scraper for integrations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package snmp_exporter embeds https://github.com/prometheus/snmp_exporter.
No description provided by the author

# Functions

CompareConfigs will return true if a and b are equal.
MarshalYAML helps implement yaml.Marshaler for structs that have a Configs field that should be inlined in the YAML string.
Register dynamically registers a new integration.
Registered all Configs that were passed to Register or RegisterLegacy.
RegisteredType returns the registered integrations.Type for c.
RegisterLegacy registers a v1.Config.
UnmarshalYAML helps implement yaml.Unmarshaller for structs that have a Configs field that should be inlined in the YAML string.

# Constants

IntegrationsAutoscrapeTargetsEndpoint is the API endpoint where autoscrape integrations targets are exposed.
IntegrationsSDEndpoint is the API endpoint where the integration HTTP SD API is exposed.
TypeEither is an integration that can be unmarshaled either as a singleton or as an array, but not both.
TypeInvalid is an invalid type.
TypeMultiplex is an integration that can only be defined through an array, unmarshaled through "<integration name>_configs".
TypeSingleton is an integration that can only be defined exactly once in the config, unmarshaled through "<integration name>".

# Variables

DefaultSubsystemOptions holds the default settings for a Controller.
DefaultSubsystemOptions holds the default settings for a Controller.
ErrInvalidUpdate is returned by ApplyConfig when the config cannot be dynamically applied.
NoOpIntegration is an Integration that does nothing.

# Structs

Endpoint is a location where something is exposed.
Globals are used to pass around subsystem-wide settings that integrations can take advantage of.
MetricsSubsystemOptions controls how metrics integrations behave.
SubsystemOptions controls how the integrations subsystem behaves.

# Interfaces

ComparableConfig extends Config with an ConfigEquals method.
Config provides a configuration and constructor for an integration.
HTTPIntegration is an integration that exposes an HTTP handler.
An Integration integrates some external system with Grafana Agent's existing subsystems.
MetricsIntegration is an integration that exposes Prometheus scrape targets.
UpdateIntegration is an Integration whose config can be updated dynamically.
UpgradedConfig is a v2 Config that was constructed through a legacy v1.Config.

# Type aliases

Configs is a list of integrations.
FuncIntegration is a function that implements Integration.
Type determines a specific type of integration.
UpgradeFunc upgrades cfg to a UpgradedConfig.