Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "system"
Variables ¶
View Source
var DefaultArguments = Config{ HostnameSources: []string{"dns", "os"}, ResourceAttributes: ResourceAttributesConfig{ HostArch: rac.ResourceAttributeConfig{Enabled: false}, HostCPUCacheL2Size: rac.ResourceAttributeConfig{Enabled: false}, HostCPUFamily: rac.ResourceAttributeConfig{Enabled: false}, HostCPUModelID: rac.ResourceAttributeConfig{Enabled: false}, HostCPUModelName: rac.ResourceAttributeConfig{Enabled: false}, HostCPUStepping: rac.ResourceAttributeConfig{Enabled: false}, HostCPUVendorID: rac.ResourceAttributeConfig{Enabled: false}, HostID: rac.ResourceAttributeConfig{Enabled: false}, HostName: rac.ResourceAttributeConfig{Enabled: true}, OsDescription: rac.ResourceAttributeConfig{Enabled: false}, OsType: rac.ResourceAttributeConfig{Enabled: true}, }, }
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 `river:"hostname_sources,attr,optional"` ResourceAttributes ResourceAttributesConfig `river:"resource_attributes,block,optional"` }
Config defines user-specified configurations unique to the system detector
func (*Config) SetToDefault ¶
func (c *Config) SetToDefault()
SetToDefault implements river.Defaulter.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { HostArch rac.ResourceAttributeConfig `river:"host.arch,block,optional"` HostCPUCacheL2Size rac.ResourceAttributeConfig `river:"host.cpu.cache.l2.size,block,optional"` HostCPUFamily rac.ResourceAttributeConfig `river:"host.cpu.family,block,optional"` HostCPUModelID rac.ResourceAttributeConfig `river:"host.cpu.model.id,block,optional"` HostCPUModelName rac.ResourceAttributeConfig `river:"host.cpu.model.name,block,optional"` HostCPUStepping rac.ResourceAttributeConfig `river:"host.cpu.stepping,block,optional"` HostCPUVendorID rac.ResourceAttributeConfig `river:"host.cpu.vendor.id,block,optional"` HostID rac.ResourceAttributeConfig `river:"host.id,block,optional"` HostName rac.ResourceAttributeConfig `river:"host.name,block,optional"` OsDescription rac.ResourceAttributeConfig `river:"os.description,block,optional"` OsType rac.ResourceAttributeConfig `river:"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.