Documentation ¶
Overview ¶
Package collector handles the CloudWatch Agent.
Index ¶
- Variables
- func Annotations(instance v1alpha1.AmazonCloudWatchAgent) map[string]string
- func Container(cfg config.Config, logger logr.Logger, agent v1alpha1.AmazonCloudWatchAgent, ...) corev1.Container
- func DaemonSet(cfg config.Config, logger logr.Logger, agent v1alpha1.AmazonCloudWatchAgent) appsv1.DaemonSet
- func Deployment(cfg config.Config, logger logr.Logger, otelcol v1alpha1.AmazonCloudWatchAgent) appsv1.Deployment
- func Labels(instance v1alpha1.AmazonCloudWatchAgent, name string, filterLabels []string) map[string]string
- func PodAnnotations(instance v1alpha1.AmazonCloudWatchAgent) map[string]string
- func SelectorLabels(instance v1alpha1.AmazonCloudWatchAgent) map[string]string
- func ServiceAccount(otelcol v1alpha1.AmazonCloudWatchAgent) corev1.ServiceAccount
- func ServiceAccountName(instance v1alpha1.AmazonCloudWatchAgent) string
- func Volumes(cfg config.Config, otelcol v1alpha1.AmazonCloudWatchAgent) []corev1.Volume
Constants ¶
This section is empty.
Variables ¶
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.
Types ¶
This section is empty.
Source Files ¶
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. |