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

Cloudwatch agent #32110

Merged
merged 2 commits into from Mar 13, 2020
Merged

Cloudwatch agent #32110

merged 2 commits into from Mar 13, 2020

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Nov 23, 2019

Description

This PR updates/replaces two existing Chef cookbooks cdo-cloudwatch-extra-metrics and cdo-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 to cdo-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 to cdo-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/configures rsyslog to rotate syslog 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

Use new agent for collecting CloudWatch metrics and logs.
@wjordan wjordan merged commit e285df2 into staging Mar 13, 2020
@wjordan wjordan deleted the cloudwatch-agent branch March 13, 2020 21:07
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
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants