Code Monkey home page Code Monkey logo

docker-cloudwatch-monitoring's Introduction

Docker Cloudwatch Monitoring

This Docker container contains Amazon EC2 scripts to simplify reporting additional EC2 instance information to Cloudwatch. These Perl scripts comprise a fully functional examples that reports memory, swap, and disk space utilization metrics for a Linux instance. You can learn more about the scripts here.

Getting started

  1. Create awscreds.template with your IAM credentials. You can jumpstart the process by copying and modifying the example file with cp awscreds.template.example awscreds.template. For more information regarding creating new IAM role or modifying existing IAM role for your EC2 instance go here.

  2. Create crontab to specify what metrics and when you would like reported to CloudWatch. Again, you can speed up development with copying and modifying the example file with cp crontab.example crontab. The example cron task reports instance memory and disk usage to CloudWatch every minute. To find the list of all options and what they mean, refer to the official documentation here. While modifying the options per your requirements, make sure to keep the following in mind:

Unless you move the AWS credential file, the following path should remain the same

--aws-credential-file=/aws-scripts-mon/awscreds.template

Correct disk-path is required to successfully report disk usage. For simpler configuration, /etc/hosts should suffice but feel free to double check if you see any issues.

Debugging

If you are encountering any issues with reporting EC2 metrics in production, you may try the included debugging crontab file. Copy and modify the debugging example file with cp crontab.example-debugging crontab. The two key differences is that the output of cron job is verbose and written to /var/log/cron.log file.

docker-cloudwatch-monitoring's People

Contributors

ariabov avatar vmakhaev 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.