Coder Social home page Coder Social logo

collectd_to_cloudwatch's Introduction

collectd_to_cloudwatch

POC of collectd to cloudwatch

  • Usage

  • copy collectd_to_cloudwatch.py where you want (ex /var/lib/collectd/python)

  • copy collectd_to_cloudwatch.conf and collectd_to_cloudwatch.yaml to your collectd.conf includedir configuration (generally /etc/collectd.d/ or /etc/collectd/collectd.d/)

  • edit collectd_to_cloudwatch.conf, define the path to collectd_to_cloudwatch.py and to collectd_to_cloudwatch.yaml and change the region

  • restart collectd

  • Extra configuration

  • By default values will be writed in the namespace "AWS/EC2" you can change it, but it seems to be mandatory for EC2 AutoScaling metrics

  • You can define more plugin/type in collectd_to_cloudwatch.yaml, all defined plugin/type will be send to cloudwatch.

  • collectd_to_cloudwatch.yaml format :

plugin name:
   type name:
     unit: optional default is None. Cloudwatch unit for the plugin/type (must be one of the cloudwatch supported unit, currently : Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None)
     # optional :
     type-instance:
        type-intance1-name: Cloudwatch unit for the plugin/type/type-instance
        type-intance2-name: Cloudwatch unit for the plugin/type/type-instance
  • Needed IAM policy on each EC2 instances
{
  "Statement":[{
    "Resource":"*",
    "Action":[
      "cloudwatch:Get*",
      "cloudwatch:Put*",
      "ec2:Describe*"
    ],
    "Effect":"Allow"
  }]
}

collectd_to_cloudwatch's People

Contributors

bd-clara avatar poil avatar

Watchers

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