dashpay / dash-network-deploy

Tools for Dash networks deployment and testing
MIT License
20 stars 19 forks source link

chore: replace cloudwatch mon script with cloudwatch agent #570

Closed strophy closed 11 months ago

strophy commented 11 months ago

Issue being fixed or feature implemented

We have been using the Cloudwatch monitoring scripts written in Perl to send data from instances to Cloudwatch. These scripts seem to have been deprecated sometime in 2020, and should be replaced with Cloudwatch Agent.

What was done?

Replace unmaintained aws-scripts-mon Ansible role with maintained christiangda.amazon_cloudwatch_agent.

How Has This Been Tested?

Tested on testnet masternode-1

Breaking Changes

crontab for ubuntu user needs to be cleared and the /opt/aws-scripts-mon directory deleted on all nodes to avoid delivering metrics twice. I'll take this step when merging the PR, after verifying metrics are being delivered properly.

Checklist:

For repository code-owners and collaborators only

strophy commented 11 months ago

Note that this will also change the namespace for shipped metrics from System/Linux to CWAgent, and also the precision/accuracy seems to change slightly too. I think this is worth it for switching to a maintained tool which delivers way more metrics than the old one. Example graph showing the jump from one namespace to another on masternode-1, compared to constantly delivered metrics on masternode-2. image