GithubHelp home page GithubHelp logo

torut / aws-cloudwatch-munin-plugin Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 156 KB

Amazon Web Service の CloudWatch からデータを取得する munin プラグイン

License: MIT License

Shell 100.00%

aws-cloudwatch-munin-plugin's People

Contributors

torut avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

aws-cloudwatch-munin-plugin's Issues

Uses obsolete software

mon-get-stats is obsolete and not available anymore. Should use aws-cli instead.

This here are the necessary changes to ec2_cpucreditbalance (only the stats=-line was replaced):

`stats=$(aws cloudwatch get-metric-statistics
--namespace AWS/EC2
--metric-name CPUCreditBalance
--start-time $(date --iso-8601=seconds -d "10 mins ago")
--end-time $(date --iso-8601=seconds)
--period 300
--statistics Maximum
--dimensions Name=InstanceId,Value=${instance_id} |
jq '.Datapoints | sort_by(.Timestamp | fromdateiso8601) | .[-1].Maximum')

echo -n "CPUCreditBalance.value "
echo ${stats}
`

Uses "jq" (as in: "apt install jq"). Also "aws" ("apt install awscli")

Also note, that the aws-credentials handling has to be done differently, for instance. I solved it by putting the "credentials" and the "config" file into /var/lib/munin/.aws/

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.