feat: add status reporting to CloudWatch#45679
Merged
Kavindu-Dodan merged 7 commits intoelastic:mainfrom Aug 7, 2025
Merged
Conversation
Contributor
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
8b74b85 to
a7bd411
Compare
956ecb8 to
d4caa4c
Compare
d4caa4c to
16e122b
Compare
Contributor
|
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
joecompute
reviewed
Aug 4, 2025
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
5b793d6 to
e0ebed9
Compare
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
e0ebed9 to
53215ec
Compare
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
taylor-swanson
approved these changes
Aug 6, 2025
Contributor
taylor-swanson
left a comment
There was a problem hiding this comment.
The status reporting changes LGTM, I'll defer the rest of the review to the codeowners of this input.
gizas
reviewed
Aug 7, 2025
gizas
reviewed
Aug 7, 2025
gizas
reviewed
Aug 7, 2025
gizas
reviewed
Aug 7, 2025
Contributor
|
Overall functionality is there , great one Kavindu |
gizas
approved these changes
Aug 7, 2025
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
23f9d97 to
11283d0
Compare
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
mergify bot
pushed a commit
that referenced
this pull request
Aug 7, 2025
* feat: add status reporting to CloudWatch Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve status propagation Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog entry Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: sync for reporting Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: add error message for degrading statuses Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review suggestions Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve nil handling in error handling Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> (cherry picked from commit b17bbad)
6 tasks
mergify bot
pushed a commit
that referenced
this pull request
Aug 7, 2025
* feat: add status reporting to CloudWatch Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve status propagation Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog entry Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: sync for reporting Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: add error message for degrading statuses Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review suggestions Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve nil handling in error handling Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> (cherry picked from commit b17bbad)
6 tasks
Kavindu-Dodan
added a commit
that referenced
this pull request
Aug 7, 2025
* feat: add status reporting to CloudWatch (#45679) * feat: add status reporting to CloudWatch Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve status propagation Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog entry Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: sync for reporting Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: add error message for degrading statuses Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review suggestions Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve nil handling in error handling Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> (cherry picked from commit b17bbad) * Update CHANGELOG.next.asciidoc --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Kavindu-Dodan
added a commit
that referenced
this pull request
Aug 12, 2025
) * feat: add status reporting to CloudWatch (#45679) * feat: add status reporting to CloudWatch Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve status propagation Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog entry Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: sync for reporting Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review: add error message for degrading statuses Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * review suggestions Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * improve nil handling in error handling Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> (cherry picked from commit b17bbad) * Update CHANGELOG.next.asciidoc --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
6 tasks
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Adds Status reporting for AWS CloudWatch input. I have introduced following,
cwStateReporter: This proxy the status to the actual status reporter. Validate status change from current before conveying status to internal reporter.debugCWStatusReporter: Performs debug logging when context-bound reporter is missing. For example, this happens in standalone modeChecklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
None - Status reports are utilized by the Agent. In standalone mode, logs are added in Debug level
How to test this PR locally
CloudWatch input status updated:prefix for status changesSee below log entries from a standalone run,
Startup and configuration
Degraded - network connectivity issue
Back to running status
Related issues
Fixes #44648