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

# Packages

Package k8s spins up a Kubernetes cluster for testing.
No description provided by the author
Package structwalk allows you to "walk" the hierarchy of a struct.
Package subset implements functions to check if one value is a subset of another.
Package testappender exposes utilities to test code which writes to Prometheus storage.Appenders.
No description provided by the author
Package zapadapter allows github.com/go-kit/log to be used as a Zap core.

# Functions

CamelToSnake is a helper function for converting CamelCase to Snake Case.
CompareYAML marshals a and b to YAML and ensures that their contents are equal.
CompareYAMLWithHook marshals both a and b to YAML and checks the results for equality, allowing for a hook to define custom marshaling behavior.
DefaultConfigFromFlags will load default values into cfg by retrieving default values that are registered as flags.
Enables a set of feature gates in Otel's Global Feature Gate Registry.
Eventually calls the check function several times until it doesn't report an error.
No description provided by the author
MarshalYAMLMerged marshals all values from vv into a single object.
MustRegisterOrGet will attempt to register the supplied collector into the register.
NewUncheckedCollector creates a new UncheckedCollector.
NewWaitTrigger creates a new WaitTrigger.
Enables a set of feature gates which should always be enabled for Flow mode.
Enables a set of feature gates which should always be enabled for Static mode.
TestFlowLogger generates a Flow-compatible logger for a test.
TestLogger generates a logger for a test.
UnmarshalYAMLMerged performs a strict unmarshal of bb into all values from vv.
Untab is a utility function for tests to make it easier to write YAML tests, where some editors will insert tabs into strings by default.
WrapWithUnregisterer wraps a prometheus Registerer with capabilities to unregister all collectors.

# Structs

SyncBuffer wraps around a bytes.Buffer and makes it safe to use from multiple goroutines.
UncheckedCollector is a prometheus.Collector which stores a set of unchecked metrics.
Unregisterer is a Prometheus Registerer that can unregister all collectors passed to it.
WaitTrigger allows for waiting for a specific condition to be met.

# Interfaces

ConfigFlags is an interface that will register flags that can control some object.
PrefixedConfigFlags is an interface that, given a prefix for flags and a flagset, will register flags that can control some object.

# Type aliases

RawYAML is similar to json.RawMessage and allows for deferred YAML decoding.