Skip to content

[AWS CloudWatch OTEL Input] Update delay config per Policy - #19551

Merged
muthu-mps merged 4 commits into
elastic:mainfrom
muthu-mps:apply_delay_by_policy
Jun 17, 2026
Merged

[AWS CloudWatch OTEL Input] Update delay config per Policy#19551
muthu-mps merged 4 commits into
elastic:mainfrom
muthu-mps:apply_delay_by_policy

Conversation

@muthu-mps

Copy link
Copy Markdown
Contributor
  • Enhancement

Proposed commit message

Apply metrics delay per service.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

Inspect Agent Logs:

AWS EC2 with 15mins and Lambda with 5m delay.
Screenshot 2026-06-16 at 3 42 50 PM

Policy config

Screenshot 2026-06-16 at 3 55 56 PM Screenshot 2026-06-16 at 3 51 35 PM

@muthu-mps
muthu-mps requested a review from a team as a code owner June 16, 2026 10:26
@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@andrewkroh andrewkroh added Integration:aws_cloudwatch_input_otel AWS CloudWatch (OpenTelemetry) Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Jun 16, 2026
delay: {{delay}}
discovery:
filters:
namespace: "{{namespace}}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing that I noticed, shared_credential_file and credential_profile_name are present in this file but not in manifest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are planned to go in separate PR.

type: duration
title: Statistic Delay
description: How far back from now each scrape's query window ends. Increase if metrics arrive late from CloudWatch.
default: 10m

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right default value for all these services ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EC2 gets the largest (15m) since basic monitoring is 5-min granularity with the most lag; the faster 1-min services (ELB) get 5m. All are user-overridable. Open to adjusting any specific value. The standard aws integration ships no default for the equivalent latency and leaves user to set. we are setting the values for better OOTB behaviour.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

✅ All changelog entries have the correct PR link.

@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

@muthu-mps
muthu-mps merged commit 62cf1f7 into elastic:main Jun 17, 2026
9 checks passed
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Package aws_cloudwatch_input_otel - 0.2.1 containing this change is available at https://epr.elastic.co/package/aws_cloudwatch_input_otel/0.2.1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:aws_cloudwatch_input_otel AWS CloudWatch (OpenTelemetry) Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants