metadata

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type             = "k8sattributes"
	LogsStability    = component.StabilityLevelBeta
	MetricsStability = component.StabilityLevelBeta
	TracesStability  = component.StabilityLevelBeta
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceAttributeConfig added in v0.80.0

type ResourceAttributeConfig struct {
	Enabled bool `mapstructure:"enabled"`
}

ResourceAttributeConfig provides common config for a particular resource attribute.

type ResourceAttributesConfig added in v0.80.0

type ResourceAttributesConfig struct {
	ContainerID        ResourceAttributeConfig `mapstructure:"container.id"`
	ContainerImageName ResourceAttributeConfig `mapstructure:"container.image.name"`
	ContainerImageTag  ResourceAttributeConfig `mapstructure:"container.image.tag"`
	K8sContainerName   ResourceAttributeConfig `mapstructure:"k8s.container.name"`
	K8sCronjobName     ResourceAttributeConfig `mapstructure:"k8s.cronjob.name"`
	K8sDaemonsetName   ResourceAttributeConfig `mapstructure:"k8s.daemonset.name"`
	K8sDaemonsetUID    ResourceAttributeConfig `mapstructure:"k8s.daemonset.uid"`
	K8sDeploymentName  ResourceAttributeConfig `mapstructure:"k8s.deployment.name"`
	K8sDeploymentUID   ResourceAttributeConfig `mapstructure:"k8s.deployment.uid"`
	K8sJobName         ResourceAttributeConfig `mapstructure:"k8s.job.name"`
	K8sJobUID          ResourceAttributeConfig `mapstructure:"k8s.job.uid"`
	K8sNamespaceName   ResourceAttributeConfig `mapstructure:"k8s.namespace.name"`
	K8sNodeName        ResourceAttributeConfig `mapstructure:"k8s.node.name"`
	K8sPodHostname     ResourceAttributeConfig `mapstructure:"k8s.pod.hostname"`
	K8sPodName         ResourceAttributeConfig `mapstructure:"k8s.pod.name"`
	K8sPodStartTime    ResourceAttributeConfig `mapstructure:"k8s.pod.start_time"`
	K8sPodUID          ResourceAttributeConfig `mapstructure:"k8s.pod.uid"`
	K8sReplicasetName  ResourceAttributeConfig `mapstructure:"k8s.replicaset.name"`
	K8sReplicasetUID   ResourceAttributeConfig `mapstructure:"k8s.replicaset.uid"`
	K8sStatefulsetName ResourceAttributeConfig `mapstructure:"k8s.statefulset.name"`
	K8sStatefulsetUID  ResourceAttributeConfig `mapstructure:"k8s.statefulset.uid"`
}

ResourceAttributesConfig provides config for k8sattributes resource attributes.

func DefaultResourceAttributesConfig added in v0.80.0

func DefaultResourceAttributesConfig() ResourceAttributesConfig

Jump to

Keyboard shortcuts

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