system

package
v1.4.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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) Convert

func (args Config) Convert() map[string]interface{}

func (*Config) SetToDefault

func (c *Config) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate config

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL