Giter Site home page Giter Site logo

availabl-co / cwtune Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 52 KB

CLI for selecting and back-testing CloudWatch alarm configuration

Home Page: https://availabl.ai

License: MIT License

Python 100.00%
aws cloudwatch incident-response-tooling observability cli cloud-management developer-tools linux macos python

cwtune's Introduction

cwtune

Description

cwtune is an open-source tool developed by availabl.ai. It addresses the issue of noisy CloudWatch alarms by providing a data-driven approach for selecting better thresholds.

Thresholds for these monitors are usually selected by trial and error, which can lead to unnecessary noise. cwtune uses historical data to backtest and suggest optimized thresholds, ensuring your alarms are tuned to the right level. This reduces unnecessary noise and increases the value of your alerts.

Requirements

Installation

You can install cwtune via pip:

pip install cwtune

Usage

After installation, you can run cwtune from the command line:

cwtune

The tool will then guide you interactively through the process of configuring your CloudWatch alarm.

Alternatively, you can provide command-line arguments to configure the alarm:

cwtune --alarm-type [gt|lt] --period [1|5|60] --statistic [Sum|Average|Min|Max|SampleCount|p50|p95|p99] --region [AWS region] --aws-profile [AWS CLI profile]

Here's what each argument does:

  • --alarm-type: The type of alarm, either greater than (gt) or less than (lt).
  • --period: The period of the CloudWatch metric in minutes. Can be 1, 5, or 60.
  • --statistic: The statistic of the CloudWatch metric. Can be Sum, Average, Min, Max, SampleCount, p50, p95 or p99.
  • --region: The region of the CloudWatch metric. Can be any valid AWS region.
  • --aws-profile: (Optional) The profile configured in AWS CLI to use for making API calls. Defaults to default.

For example, to configure a greater than alarm with a 1-minute period, using the Sum statistic, in the us-west-1 region, and using the default AWS CLI profile, you would run:

cwtune --alarm-type gt --period 1 --statistic Sum --region us-west-1 --aws-profile default

Example Plot

Screen Shot 2023-08-02 at 15 48 45 p m

Contributing

We welcome contributions from the community! If you would like to contribute, please follow these steps:

  1. Fork the repository on GitHub.
  2. Make your changes in a new branch.
  3. Test your changes to ensure they do not introduce new bugs.
  4. Submit a pull request for review.

License

cwtune is licensed under the MIT License. See the LICENSE file for details.

cwtune's People

Contributors

arranmccabe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.