Skip to content

Commit 3a9f842

Browse files
committed
reuse shared processors and address comments
1 parent 08f29dc commit 3a9f842

10 files changed

Lines changed: 72 additions & 1482 deletions

File tree

charts/amazon-cloudwatch-observability/templates/_helpers.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ Logic:
132132
{{- end -}}
133133
{{/* OTEL CI: emit JSON config; the agent generates the pipeline (node=targetAgent, cluster=clusterScraperAgent). */}}
134134
{{- if $ctx.Values.otelContainerInsights.enabled -}}
135-
{{- $interval := atoi (trimSuffix "s" $ctx.Values.otelContainerInsights.metricResolution) -}}
135+
{{- $res := $ctx.Values.otelContainerInsights.metricResolution -}}
136+
{{- $interval := ternary (mul (atoi (trimSuffix "m" $res)) 60) (atoi (trimSuffix "s" $res)) (hasSuffix "m" $res) -}}
136137
{{- if eq $ctx.Values.otelContainerInsights.targetAgent $agentName -}}
137138
{{/* Hybrid: agent renders metrics only; CI logs come from the chart otelConfig. */}}
138139
{{- $ci := dict "collection_interval" $interval "role" "node" "logs" (dict "enabled" false) -}}

charts/amazon-cloudwatch-observability/templates/linux/_otel-container-insights-cluster-scraper-config.tpl

Lines changed: 0 additions & 409 deletions
This file was deleted.

0 commit comments

Comments
 (0)