Skip to content

fix: add logging wrapper for cloudwatch exporter with support for debug field#4553

Merged
kalleep merged 2 commits intomainfrom
kalleep/cloudwatch-exporter-logging
Oct 7, 2025
Merged

fix: add logging wrapper for cloudwatch exporter with support for debug field#4553
kalleep merged 2 commits intomainfrom
kalleep/cloudwatch-exporter-logging

Conversation

@kalleep
Copy link
Contributor

@kalleep kalleep commented Oct 6, 2025

PR Description

In #3995 we updated cloudwatch exporter.

With that change we now pass an adapter around our internal logger.

But this adapter assumes that all logging will be pass through as noted by this comment . But the exporter do check if debug logging is enabled and passes that as internal config to aws sdk that does it's own logging and because we always return true for all log level this happens.

We have debug attribute on this component that should control this.

Which issue(s) this PR fixes

Fixes: #4541

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@kalleep kalleep requested a review from a team as a code owner October 6, 2025 13:36
@kalleep kalleep merged commit 2e72ada into main Oct 7, 2025
41 checks passed
@kalleep kalleep deleted the kalleep/cloudwatch-exporter-logging branch October 7, 2025 07:24
kalleep added a commit that referenced this pull request Oct 9, 2025
…ug field (#4553)

* Add logging wrapper for cloudwatch exporter with support for debug field
kalleep added a commit that referenced this pull request Oct 9, 2025
* loki.source.journal: fix deadlock (#4571)

* fix: add logging wrapper for cloudwatch exporter with support for debug field (#4553)

* Use sync timeout to decide how long to retry waiting for k8s api for prometheus.operator.* components (#4568)

---------

Co-authored-by: Piotr <17101802+thampiotr@users.noreply.github.com>
Co-authored-by: Sam DeHaan <sam.dehaan@grafana.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CloudWatch exporter logs AWS STS requests at DEBUG after upgrading Alloy from v1.10.1 → v1.11.0, even with 'debug = false'

3 participants