Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeStr is type of detector.
TypeStr = "system"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
func NewDetector(p processor.CreateSettings, 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"` ResourceAttributes metadata.ResourceAttributesConfig `mapstructure:"resource_attributes"` }
Config defines user-specified configurations unique to the system detector
func CreateDefaultConfig ¶ added in v0.81.0
func CreateDefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.