collector

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package collector handles the CloudWatch Agent.

Index

Constants

This section is empty.

Variables

View Source
var CloudwatchAgentPorts = []corev1.ServicePort{
	{
		Name: "otlp-grpc",
		Port: 4315,
	},
	{
		Name: "otlp-http",
		Port: 4316,
	},
	{
		Name: "aws-proxy",
		Port: 2000,
	},
}

Functions

func Annotations

func Annotations(instance v1alpha1.AmazonCloudWatchAgent) map[string]string

Annotations return the annotations for AmazonCloudWatchAgent pod.

func Container

func Container(cfg config.Config, logger logr.Logger, agent v1alpha1.AmazonCloudWatchAgent, addConfig bool) corev1.Container

Container builds a container for the given collector.

func DaemonSet

func DaemonSet(cfg config.Config, logger logr.Logger, agent v1alpha1.AmazonCloudWatchAgent) appsv1.DaemonSet

DaemonSet builds the deployment for the given instance.

func Deployment

func Deployment(cfg config.Config, logger logr.Logger, otelcol v1alpha1.AmazonCloudWatchAgent) appsv1.Deployment

Deployment builds the deployment for the given instance.

func Labels

func Labels(instance v1alpha1.AmazonCloudWatchAgent, name string, filterLabels []string) map[string]string

Labels return the common labels to all objects that are part of a managed AmazonCloudWatchAgent.

func PodAnnotations

func PodAnnotations(instance v1alpha1.AmazonCloudWatchAgent) map[string]string

PodAnnotations return the spec annotations for AmazonCloudWatchAgent pod.

func SelectorLabels

func SelectorLabels(instance v1alpha1.AmazonCloudWatchAgent) map[string]string

SelectorLabels return the common labels to all objects that are part of a managed AmazonCloudWatchAgent to use as selector. Selector labels are immutable for Deployment, StatefulSet and DaemonSet, therefore, no labels in selector should be expected to be modified for the lifetime of the object.

func ServiceAccount

func ServiceAccount(otelcol v1alpha1.AmazonCloudWatchAgent) corev1.ServiceAccount

ServiceAccount returns the service account for the given instance.

func ServiceAccountName

func ServiceAccountName(instance v1alpha1.AmazonCloudWatchAgent) string

ServiceAccountName returns the name of the existing or self-provisioned service account to use for the given instance.

func Volumes

func Volumes(cfg config.Config, otelcol v1alpha1.AmazonCloudWatchAgent) []corev1.Volume

Volumes builds the volumes for the given instance, including the config map volume.

Types

This section is empty.

Directories

Path Synopsis
Package adapters is for data conversion.
Package adapters is for data conversion.
Package reconcile contains reconciliation logic for CloudWatch Agent components.
Package reconcile contains reconciliation logic for CloudWatch Agent components.
Package upgrade handles the upgrade routine from one OpenTelemetry Collector to the next.
Package upgrade handles the upgrade routine from one OpenTelemetry Collector to the next.

Jump to

Keyboard shortcuts

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