Documentation
¶
Index ¶
- Constants
- func DefaultECSJsonConfig() string
- func DefaultJSONConfigFor(name string, isKubernetes, isECS bool) (string, bool)
- func DefaultJsonConfig(os string, mode string) string
- func GetFormattedPath(rawPath string) string
- func GetJsonSchema() string
- func OverwriteSchema(newSchema string)
- func ToValidOs(os string) string
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
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 GetFormattedPath ¶
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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.