Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jc2k/munin-to-cloudwatch
A thing i made a while ago to pump munin data into cloudwatch
https://github.com/jc2k/munin-to-cloudwatch
Last synced: 7 days ago
JSON representation
A thing i made a while ago to pump munin data into cloudwatch
- Host: GitHub
- URL: https://github.com/jc2k/munin-to-cloudwatch
- Owner: Jc2k
- Created: 2016-09-04T07:26:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-04T07:27:55.000Z (over 8 years ago)
- Last Synced: 2024-11-08T18:53:11.588Z (2 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Munin Node -> CloudWatch
========================Installation
------------You'll need `munin-node` installed and some plugins configured. This is enough
to get started::sudo apt install munin-node munin-plugins-extra
You'll need to deploy this code. We provide a python bundle that you can just copy into ``/usr/local/bin``.
You'll need an AWS Access Key. If you are deploying this on EC2 you should use IAM Instance Profiles to grant the EC2 instance a role. Otherwise you could have a per-server user in a group. Either way the policy it needs is::
{
"Statement": [{
"Action": "cloudwatch:PutMetricData",
"Effect": "Allow",
"Resource": "*"
}]
}You'll need a cron job::
crontab -e
# Mail output can be useful when testing
[email protected]# You only need to set these for bare metal servers
AWS_ACCESS_KEY_ID=youraccesskey
AWS_SECRET_ACCESS_KEY=yoursecretaccesskey4-59/5 * * * * /usr/local/bin/munin-node-to-cloudwatch