Giter VIP home page Giter VIP logo

ansible_ec2_monitor's Introduction

ansible_ec2_monitor

Ansible Role to install CloudWatchMonitoringScripts and Monitor Memory and Disk Metrics for Amazon EC2 Linux Instances

Role Variables

Following variables need to be defined:

  • cloud_watch_monitoring_path - Path where scripts will be downloaded and unarchieved
  • cron_specs - {name: "Name of the task", minute: "/5", hour: "", job: "{{cloud_watch_monitoring_path}}/aws-scripts-mon/mon-put-instance-data.pl --disk-space-util --disk-path=/mnt/data --from-cron --aws-access-key-id=AWS_KEY --aws-secret-key=AWS_SECRET_KEY"}

Note: There are no default values for the above mentioned variables.

Dependencies

This package has no dependencies on modules not included with Ansible by default.

Install

$ ansible-galaxy install amritsingh.ec2_monitor

Usage

Example Usage in site.yml

$ cat site.yml
---
- hosts: all
  remote_user: centos
  become: yes
  become_method: sudo
  roles:
      - role: "amritsingh.ec2_monitor"

        cloud_watch_monitoring_path: "/opt"
        cron_specs:
            - name: "Send Memory And Disk Usage Statistics"
              minute: "*/5"
              hour: "*"
              job: >
                  {{cloud_watch_monitoring_path}}/aws-scripts-mon/mon-put-instance-data.pl
                  --disk-space-util
                  --disk-path=/
                  --disk-path=/data
                  --disk-space-used
                  --disk-space-avail
                  --mem-util
                  --mem-used
                  --mem-avail
                  --from-cron
                  --aws-access-key-id=your_aws_access_key_id
                  --aws-secret-key=your_aws_secret_key

License

Apache

Author Information

Created by Amrit Singh https://www.twitter.com/_amrit_

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.