cloudwatch_agent

package module
v0.0.0-...-6d46272 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Overview

Package cloudwatch_agent installs an Amazon CloudWatch Agent. Replace https://github.com/aws/aws-k8s-tester/tree/v1.5.9/eks/cw-agent. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-logs.html. See https://hub.docker.com/r/amazon/cloudwatch-agent/tags?page=1&ordering=last_updated.

Index

Constants

View Source
const CWAgentImageName = "amazon/cloudwatch-agent:1.247347.6b250880"

CWAgentImageName is the image name of CloudWatch agent daemon set. ref. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-logs.html ref. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-EKS-quickstart.html ref. https://hub.docker.com/r/amazon/cloudwatch-agent

View Source
const DefaultMinimumNodes int = 1
View Source
const TemplateCWAgentConf = `` /* 250-byte string literal not displayed */

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-metrics.html

Variables

This section is empty.

Functions

func Env

func Env() string

func New

func New(cfg *Config) k8s_tester.Tester

Types

type Config

type Config struct {
	Enable bool `json:"enable"`
	Prompt bool `json:"-"`

	Stopc     chan struct{} `json:"-"`
	Logger    *zap.Logger   `json:"-"`
	LogWriter io.Writer     `json:"-"`
	Client    client.Client `json:"-"`

	Region      string `json:"region"`
	ClusterName string `json:"cluster_name" read-only:"true"`

	// MinimumNodes is the minimum number of Kubernetes nodes required for installing this addon.
	MinimumNodes int `json:"minimum_nodes"`
	// Namespace to create test resources.
	Namespace string `json:"namespace"`
}

func NewDefault

func NewDefault() *Config

func (*Config) ValidateAndSetDefaults

func (cfg *Config) ValidateAndSetDefaults(clusterName string) error

Directories

Path Synopsis
cmd
k8s-tester-cloud-watch-agent
k8s-tester-cloudwatch-agent installs Kubernetes cloudwatch-agent tester.
k8s-tester-cloudwatch-agent installs Kubernetes cloudwatch-agent tester.

Jump to

Keyboard shortcuts

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