package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Packages

# Functions

CollectFlatSnapshot collects a flattened snapshot of a metrics tree start with the given registry.
CollectStructSnapshot collects a structured metrics snaphot of a metrics tree starting with the given registry.
GetClusterUUID returns the value of the monitoring.cluster_uuid setting, if it is set.
GetNamespace gets the namespace with the given name.
IgnorePublishExpvar disables publishing expvar variables in a sub-registry.
IsEnabled returns whether the monitoring reporter is enabled or not.
NewBool creates and registers a new bool variable.
NewFloat creates and registers a new float variable.
NewInt creates and registers a new integer variable.
NewNamespaces creates a new namespaces list.
NewRegistry create a new empty unregistered registry.
NewString creates and registers a new string variable.
NewTimestamp creates and registeres a new timestamp variable.
NewUint creates and registers a new unsigned integer variable.
NewUniqueList create a new UniqueList.
OverrideWithCloudSettings overrides monitoring.elasticsearch.* with monitoring.cloud.* if the latter are set.
PublishExpvar enables publishing all registered variables via expvar interface.
SelectConfig selects the appropriate monitoring configuration based on the user's settings in $BEAT.yml.
VisitExpvars iterates all expvar metrics using the Visitor interface.

# Constants

Full reports all metrics.
Reported mode, is lowest report level with most basic metrics only.

# Variables

Default is the global default metrics registry provided by the monitoring package.

# Structs

BeatConfig represents the part of the $BEAT.yml to do with monitoring settings.
Bool is a Bool variable satisfying the Var interface.
FlatSnapshot represents a flatten snapshot of all metrics.
Float is a 64 bit float variable satisfying the Var interface.
Int is a 64 bit integer variable satisfying the Var interface.
Namespace contains the name of the namespace and it's registry.
Namespaces is a list of Namespace structs.
Registry to store variables and sub-registries.
String is a string variable satisfying the Var interface.
Timestamp is a timestamp variable satisfying the Var interface.
Uint is a 64bit unsigned integer variable satisfying the Var interface.
UniqueList is used to collect a list of items (strings) and get the total count and all unique strings.

# Interfaces

Var interface required for every metric to implement.
Visitor interface supports traversing a monitoring registry.

# Type aliases

Option type for passing additional options to NewRegistry.