# Functions
DefaultModuleConfig returns a ModuleConfig with the default values populated.
NewModules builds new Modules and their associated MetricSets based on the provided configuration data.
NewRegister creates and returns a new Register.
# Constants
ModuleData is the key used in events created by MetricSets to add data to an event that is common to the module.
# Variables
DefaultModuleFactory returns the given BaseModule and never returns an error.
ErrAllModulesDisabled indicates that all modules are disabled.
ErrEmptyConfig indicates that modules configuration list is nil or empty.
Registry is the singleton Register instance where all ModuleFactory's and MetricSetFactory's should be registered.
# Structs
BaseMetricSet implements the MetricSet interface.
BaseModule implements the Module interface.
HostData contains values parsed from the 'host' configuration.
ModuleConfig is the base configuration data for all Modules.
Register contains the factory functions for creating new Modules and new MetricSets.
# Interfaces
EventFetcher is a MetricSet that returns a single event when collecting data.
EventsFetcher is a MetricSet that returns a multiple events when collecting data.
MetricSet is the common interface for all MetricSet implementations.
Module is the common interface for all Module implementations.
# Type aliases
HostParser is a function that parses a host value from the configuration and returns a HostData object.
MetricSetFactory accepts a BaseMetricSet and returns a MetricSet.
ModuleFactory accepts a BaseModule and returns a Module.