# Packages
Package assertmetrics provides utilities for verifying Prometheus metrics in tests given a Registry.
No description provided by the author
No description provided by the author
No description provided by the author
Package testappender exposes utilities to test code which writes to Prometheus storage.Appenders.
No description provided by the author
No description provided by the author
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
JoinWithTruncation joins a slice of string elements with a separator sep, truncating the middle if the slice is longer than maxElements, using abbreviation as a placeholder for the truncated part.
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 in Alloy.
TestAlloyLogger generates an Alloy-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.
Untar untars a tarball to the provided destination path.
WrapWithUnregisterer wraps a prometheus Registerer with capabilities to unregister all collectors.
# Structs
UncheckedCollector is a prometheus.Collector which stores a set of unchecked metrics.
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.
Unregisterer is a Prometheus Registerer that can unregister all collectors passed to it.
# Type aliases
RawYAML is similar to json.RawMessage and allows for deferred YAML decoding.