Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeStr is type of detector.
TypeStr = "system"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
func NewDetector(p component.ProcessorCreateSettings, dcfg internal.DetectorConfig) (internal.Detector, error)
NewDetector creates a new system metadata detector
Types ¶
type Config ¶ added in v0.37.0
type Config struct { // The HostnameSources is a priority list of sources from which hostname will be fetched. // In case of the error in fetching hostname from source, // the next source from the list will be considered.(**default**: `["dns", "os"]`) HostnameSources []string `mapstructure:"hostname_sources"` }
Config defines user-specified configurations unique to the system detector
Click to show internal directories.
Click to hide internal directories.