config

package
v1.300072.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUN_IN_CONTAINER        = envconfig.RunInContainer
	RUN_IN_CONTAINER_TRUE   = envconfig.TrueValue
	RUN_IN_AWS              = envconfig.RunInAWS
	RUN_IN_AWS_TRUE         = envconfig.TrueValue
	RUN_WITH_IRSA           = envconfig.RunWithIRSA
	RUN_WITH_IRSA_TRUE      = envconfig.TrueValue
	USE_DEFAULT_CONFIG      = envconfig.UseDefaultConfig
	USE_DEFAULT_CONFIG_TRUE = envconfig.TrueValue
	HOST_NAME               = envconfig.HostName
	POD_NAME                = envconfig.PodName
	HOST_IP                 = envconfig.HostIP
	CWConfigContent         = envconfig.CWConfigContent
)
View Source
const (
	ModeEC2       = "ec2"
	ModeOnPrem    = "onPrem"
	ModeOnPremise = "onPremise"
	ModeWithIRSA  = "withIRSA"
)
View Source
const (
	ModeEKS       = "EKS"
	ModeK8sEC2    = "K8sEC2"
	ModeK8sOnPrem = "K8sOnPrem"
)
View Source
const (
	ModeAzureVM = "AzureVM"
	ModeAKS     = "AKS"
)

Azure platform modes: ModeAzureVM is host-level (like ModeEC2), ModeAKS is Kubernetes-level (like ModeEKS).

View Source
const (
	ShortModeEC2       = "EC2"
	ShortModeOnPrem    = "OP"
	ShortModeWithIRSA  = "WI"
	ShortModeEKS       = "EKS"
	ShortModeK8sEC2    = "K8E"
	ShortModeK8sOnPrem = "K8OP"
	ShortModeAzureVM   = "AZVM"
	ShortModeAKS       = "AKS"
)
View Source
const (
	OS_TYPE_LINUX   = "linux"
	OS_TYPE_WINDOWS = "windows"
	OS_TYPE_DARWIN  = "darwin"
)
View Source
const (
	RegionTypeAgentConfigJson = "ACJ"
	RegionTypeCredsMap        = "CM"
	RegionTypeEC2Metadata     = "EC2M"
	RegionTypeECSMetadata     = "ECSM"
	RegionTypeNotFound        = "RNF"
)
View Source
const (
	ModeECS = "ECS"
)

Variables

This section is empty.

Functions

func DefaultECSJsonConfig

func DefaultECSJsonConfig() string

func DefaultJSONConfigFor added in v1.300071.0

func DefaultJSONConfigFor(name string, isKubernetes, isECS bool) (string, bool)

DefaultJSONConfigFor returns the platform-specific variant when the caller's detected platform has one, falling back to the named base config otherwise. Kubernetes takes precedence over ECS.

func DefaultJsonConfig

func DefaultJsonConfig(os string, mode string) string

func GetFormattedPath

func GetFormattedPath(rawPath string) string

Translate Sample: (root).agent.metrics_collection_interval -> /agent/metrics_collection_interval (root).metrics.metrics_collected.cpu.resources.1 -> /metrics/metrics_collected/cpu/resources/1

func GetJsonSchema

func GetJsonSchema() string

func OverwriteSchema added in v1.247347.5

func OverwriteSchema(newSchema string)

func ToValidOs

func ToValidOs(os string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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