Coder Social home page Coder Social logo

zabbix-cloudwatch's Introduction

zabbix-cloudwatch

Amazon CloudWatch is a monitoring service for AWS cloud resources and the applications you run on AWS, which can be accessed from AWS console. We have now integrated CloudWatch monitoring data into Zabbix monitoring system.

AmazonCloudWatch Developer Guide - http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/supported_services.html

AWS SDK in Python Boto - https://github.com/boto/boto

Installation

  1. Install boto on zabbix server via pip.

    • pip install boto
  2. Create cloudwatch directory in "/opt/zabbix/cloudwatch" and do a git pull from this repository.

  3. Add AWS account credential to the configuration file "conf/awscred".

  4. Find the metrics from AmazonCloudWatch Developer Guide and add metrics to the configuration file "conf/aws_services_metrics.conf".

  5. Create a zabbix template for an AWS service, then create items with metrics key by using zabbix trapper type.

    Sample templates can be found in "templates" folder.

    AWS Metric Zabbix Trapper Item Key Format without Discovery.

    Key: <aws_service>.<metric>.<statistics>

    AWS Metric Zabbix Trapper Item Key Format with Discovery.

    Key: <aws_service>.<metric>.<statistics>["<aws_account>","<aws_region>","<discovery_item_value>"]

    DynamoDB Item Key Format is different from the standard setup, due to combinations of different dimensions and metrics.

    operations_all = ['GetItem', 'PutItem', 'Query', 'Scan', 'UpdateItem', 'DeleteItem', 'BatchGetItem', 'BatchWriteItem']

    operations_metrics = ['SuccessfulRequestLatency', 'SystemErrors', 'ThrottledRequests]

    DynamoDB Item Key1: DynamoDB.<operations_all>.<operations_metrics>.<statistics>["<aws_account>","<aws_region>","<table_name>"]

    operations_returned_item = ['Query', 'Scan']

    DynamoDB Item Key2: DynamoDB.<operations_returned_item>.ReturnedItemCount.<statistics>["<aws_account>","<aws_region>","<table_name>"]

    DynamoDB Other Keys: DynamoDB.<metric>.<statistics>["<aws_account>","<aws_region>","<table_name>"]

  6. Create a new host and linked with the template.

  7. Create a cloudwatch bash wrapper script for cron job.

    Sample cron jobs can be found in "cron.d" folder.

  8. Create a new cron job to send the cloudwatch metrics to the host.

    Sample crontab can be found in "cron.d" folder.


zabbix-cloudwatch's People

Contributors

longc avatar omni-lchen avatar atem18 avatar dabest1 avatar nserban avatar yurij-stranger avatar ianssoftcom avatar bsingr avatar roeezab 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.