Skip to content

Add KEDA and Karpenter metrics scrapping to CWAgent - #2250

Open
Paamicky wants to merge 3 commits into
mcommey/OtelContainerInsightfrom
mcommey/CI-keda-kapernter
Open

Add KEDA and Karpenter metrics scrapping to CWAgent#2250
Paamicky wants to merge 3 commits into
mcommey/OtelContainerInsightfrom
mcommey/CI-keda-kapernter

Conversation

@Paamicky

Copy link
Copy Markdown
Contributor

Description of the issue

OTEL Container Insights supports now supports scrapping of KEDA and Karpenter cluster metrics in Helm Chart.
Customer should be able to configure and scrape those metrics on the CloudWatch Agent.

Description of changes

  • Added agent-side KEDA and Karpenter cluster-scoped pipelines (keda.yaml, karpenter.yaml), gated on
    opentelemetry.collect.container_insights.solutions.{keda,karpenter}.
  • Added solutions field in the cwagent schema.json for customers
  • They forward into the shared metrics/opentelemetry pipeline and use mark_cluster, so they inherit the
    shared host/AZ/ec2.tag suppression, schema_url clear, awsattributelimit, and batching.
  • Aligned set_workload to the canonical full definition so all copies are identical (avoids an order-dependent merge
    collision).
  • Enabled solutions in the cluster test config and regenerated the golden.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this
contribution, under the terms of your choice.

Tests

  • go build ./... and go test ./translator/... pass; gofmt clean; golden regenerated.
  • E2E on EKS (operator + JSON config, solutions enabled): cluster-scraper discovered the KEDA/Karpenter
    endpoints and added the scrape jobs; confirmed keda_scaler_active and karpenter_nodes_total in CloudWatch.
Screenshot 2026-08-14 at 20 57 42 Screenshot 2026-08-14 at 20 58 45

Requirements

  1. Run make fmt and make fmt-sh
  2. Run make lint

Integration Tests

To run integration tests against this PR, add the ready for testing label.

@Paamicky Paamicky added the ready for testing Indicates this PR is ready for integration tests to run label Aug 17, 2026
@Paamicky Paamicky changed the title Mcommey/ci keda kapernter mcommey/ci keda kapernter Aug 17, 2026
@Paamicky
Paamicky marked this pull request as ready for review August 17, 2026 19:47
@Paamicky
Paamicky requested a review from a team as a code owner August 17, 2026 19:47
@Paamicky Paamicky changed the title mcommey/ci keda kapernter Add KEDA and Karpenter metrics scrapping to CWAgent Aug 17, 2026
@Paamicky
Paamicky changed the base branch from main to mcommey/OtelContainerInsight August 19, 2026 14:03
@Paamicky
Paamicky force-pushed the mcommey/CI-keda-kapernter branch from 6b39d69 to 2599868 Compare August 19, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for testing Indicates this PR is ready for integration tests to run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant