util

package
v1.3000030.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Data_Format_Key     = "data_format"
	Data_Format_Value   = "value"
	Data_Type_Key       = "data_type"
	Data_Type_Value     = "string"
	Name_Override_Key   = "name_override"
	Name_Override_Value = "raw_log_line"
)
View Source
const (
	EKSClusterNameTagKeyPrefix = "kubernetes.io/cluster/"
)
View Source
const File_State_Folder_Linux = "/opt/aws/amazon-cloudwatch-agent/logs/state"

Variables

This section is empty.

Functions

func AddFixedTailConfig

func AddFixedTailConfig(input map[string]interface{})

func GetClusterNameFromEc2Tagger added in v1.247346.0

func GetClusterNameFromEc2Tagger() string

func GetECSClusterName added in v1.247346.0

func GetECSClusterName(sectionKey string, input map[string]interface{}) string

func GetEKSClusterName added in v1.247346.0

func GetEKSClusterName(sectionKey string, input map[string]interface{}) string

For ASG case, the ec2 tag may be not ready as soon as the node is started up. In this case, the translator will fail and then the pod will restart.

func GetFileStateFolder

func GetFileStateFolder() (fileStateFolder string)

func ValidateLogRetentionSettings added in v1.247351.0

func ValidateLogRetentionSettings(logConfigs []interface{}, currPath string) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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