Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 719 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 719 Bytes

aws-alarms-histories-mttr

Requires

  1. Node
  2. AWS Account/Setup your credentials first

This helps to measure Mean Time To Recover for DevOps metric for Cloudwatch Alarms. The measurements began when the alarm state change state from OK to ALARM. When the alarm turns to OK, the measurement stops.

The script basically runs an aws command that provides alarm histories (some sort of logs). Simple javascript is used to process the histories and outputs 2 csvs.

Usage

  1. insert alarm names in pull-alarms-history.sh
  2. npm install
  3. run pull-alarms-history.sh with bash
  4. sh pull-alarms-history.sh

To enter alarms you wish to target, you have to specify in pull-alarms-history.sh alarmsNames array