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
Cloudwatch agent #32110
Merged
Merged
Cloudwatch agent #32110
Conversation
This file contains 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
wjordan
force-pushed
the
cloudwatch-agent
branch
from
November 23, 2019 01:49
b80d6a6
to
92dacb6
Compare
Use new agent for collecting CloudWatch metrics and logs.
wjordan
force-pushed
the
cloudwatch-agent
branch
from
November 23, 2019 01:56
92dacb6
to
e6ec32f
Compare
I merged from staging, resolved conflicts, and tested again on adhocs. It seems like everything is working: From adhoc-cloudwatch-agent-2:
From adhoc-cloudwatch-agent, with proxysql enabled: |
uponthesun
approved these changes
Mar 13, 2020
4 tasks
Hamms
added a commit
that referenced
this pull request
Nov 17, 2022
In preparation for refactoring the way we install the AWS CLI to avoid use of the deprecated `poise` packages, we uninstall [this package](https://pypi.org/project/awscli-cwlogs/) which we no longer need; last reference I can find to it being used was in [the `cdo-cloudwatch-logger` cookbook we deprecated a couple years ago](https://github.com/code-dot-org/code-dot-org/pull/32110/files#diff-1644989e19715759627155721ea1ef6873e6e1d6ec4c2a96f80a2299ffb667deL6-L20) - https://pypi.org/project/awscli-cwlogs/ - #32110
8 tasks
Hamms
added a commit
that referenced
this pull request
Oct 19, 2023
The CloudWatch monitoring scripts are deprecated in favor of the CloudWatch agent, which we started using with #32110 - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-scripts-intro.html
Hamms
added a commit
that referenced
this pull request
Oct 25, 2023
* Remove Deprecated Method for Collecting CloudWatch Metrics The CloudWatch monitoring scripts are deprecated in favor of the CloudWatch agent, which we started using with #32110 - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-scripts-intro.html * update some references to the deprecated monitoring-script-based metrics to instead reference CloudWatch-Agent-collected metrics
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.
Description
This PR updates/replaces two existing Chef cookbooks
cdo-cloudwatch-extra-metrics
andcdo-cloudwatch-logger
with the newer version of the unified CloudWatch agent, which both publishes system metrics to CloudWatch and also streams log-files to CloudWatch Logs.The
cdo-cloudwatch-extra-metrics
cookbook is renamed tocdo-cloudwatch-agent
, and includes a simpler recipe that leverages a third-party cookbook (aws_cloudwatch
) to handle the installation and service-configuration of the CloudWatch Agent. The config-template JSON configures the various system metrics and logs to be reported.The
cdo-cloudwatch-logger
cookbook is renamed tocdo-syslog
, and removes the syslog-cloudwatch pipe scripts since this can now be conveniently handled by the CloudWatch Agent. I've left the part that upgrades/configuresrsyslog
to rotatesyslog
on a fixed-length size, since that should continue to be useful.Testing
Manually tested on an adhoc deployment to verify CloudWatch metrics are published and logs are collected properly.
Links