Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docker pushing logs to cloudwatch functionality #50

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

bshien
Copy link
Collaborator

@bshien bshien commented Jun 26, 2024

Description

  1. Changes docker log driver to awslogs so docker can push logs to cloudwatch.
  2. Tuned canary alarm settings
  3. Added and refactored tests for NginxProxyReadonly
  4. Refactored SecretStack name

Logs look like this in Cloudwatch:
Screenshot 2024-06-26 at 3 51 48 PM

Issues Resolved

#47

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.77%. Comparing base (50d617b) to head (aefe405).

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #50      +/-   ##
============================================
+ Coverage     76.69%   76.77%   +0.08%     
  Complexity      179      179              
============================================
  Files            52       52              
  Lines          1124     1128       +4     
  Branches         49       49              
============================================
+ Hits            862      866       +4     
  Misses          239      239              
  Partials         23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bshien bshien marked this pull request as ready for review June 26, 2024 22:48
@prudhvigodithi
Copy link
Collaborator

Thanks @bshien, if possible can we remove the special characters in the log next to INFO and DEBUG?

@@ -6,7 +6,7 @@ export interface SecretProps {
readonly secretName: string
}

export class OpenSearchMetricsSecrets extends Stack {
export class OpenSearchMetricsSecretsStack extends Stack {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The OpenSearchMetricsSecrets should be fine here right ? as it already extends stack do we need OpenSearchMetricsSecretsStack?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since the other stacks have the Stack suffix, I thought it would be better to keep that style

Copy link
Collaborator

Choose a reason for hiding this comment

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

does this name change destroy the stack and recreate ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tested on local, it didn't destroy the stack, I think that only happens if the id changes

@prudhvigodithi
Copy link
Collaborator

Thanks @bshien, if possible can we remove the special characters in the log next to INFO and DEBUG?

Having a log formatter to awssigv4proxy should help fix the special characters.
https://forums.docker.com/t/how-to-turn-off-the-log-color-mark-output-by-stdout/117429

@prudhvigodithi
Copy link
Collaborator

Merging this as there is some issue with mend and not related to this code change.
Thanks

@prudhvigodithi prudhvigodithi merged commit 6f42e49 into opensearch-project:main Jul 2, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants