Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "system"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
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. HostnameSources []string `alloy:"hostname_sources,attr,optional"` ResourceAttributes ResourceAttributesConfig `alloy:"resource_attributes,block,optional"` }
Config defines user-specified configurations unique to the system detector
func (*Config) SetToDefault ¶
func (c *Config) SetToDefault()
SetToDefault implements syntax.Defaulter.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { HostArch rac.ResourceAttributeConfig `alloy:"host.arch,block,optional"` HostCPUCacheL2Size rac.ResourceAttributeConfig `alloy:"host.cpu.cache.l2.size,block,optional"` HostCPUFamily rac.ResourceAttributeConfig `alloy:"host.cpu.family,block,optional"` HostCPUModelID rac.ResourceAttributeConfig `alloy:"host.cpu.model.id,block,optional"` HostCPUModelName rac.ResourceAttributeConfig `alloy:"host.cpu.model.name,block,optional"` HostCPUStepping rac.ResourceAttributeConfig `alloy:"host.cpu.stepping,block,optional"` HostCPUVendorID rac.ResourceAttributeConfig `alloy:"host.cpu.vendor.id,block,optional"` HostID rac.ResourceAttributeConfig `alloy:"host.id,block,optional"` HostIP rac.ResourceAttributeConfig `alloy:"host.ip,block,optional"` HostMac rac.ResourceAttributeConfig `alloy:"host.mac,block,optional"` HostName rac.ResourceAttributeConfig `alloy:"host.name,block,optional"` OsDescription rac.ResourceAttributeConfig `alloy:"os.description,block,optional"` OsType rac.ResourceAttributeConfig `alloy:"os.type,block,optional"` }
ResourceAttributesConfig provides config for system resource attributes.
func (ResourceAttributesConfig) Convert ¶
func (r ResourceAttributesConfig) Convert() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.