A Django app for adding object tools for models in the admin
Project description
Cloudwatch-to-Graphite (leadbutt) is a small utility to take metrics from CloudWatch to Graphite.
Installation
Install using pip:
pip install cloudwatch-to-graphite
Usage
Cloudwatch-to-Graphite uses boto, so make sure to follow its configuration instructions. The easiest way to do this is to set up the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables.
Set up a config.yaml. You can copy the included config.yaml.example. If your graphite server is at graphite.local, you can send metrics like:
leadbutt | nc -q0 graphite.local 2003
If you have several configs you want to switch between, you can specify a custom configuration file and send extra data with:
leadbutt --config-file=production.yaml -n 20 | nc -q0 graphite.local 2003
You can even generate configs on the fly and send it in like:
generate_config_from_inventory | leadbutt --config-file=- | nc -q0 graphite.local 2003
Developing
Install requirements:
pip install -r requirements.txt
Running test suite:
make test
Verifying tests run over all supported Python versions:
tox
Prior Art
Cloudwatch-to-Graphite was inspired by edasque’s cloudwatch2graphite. I was looking to expand it, but I wanted to use boto.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cloudwatch-to-graphite-0.0.0.tar.gz
.
File metadata
- Download URL: cloudwatch-to-graphite-0.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e78f86ebbd3777fb57ff6367c83dc6eb547fc28d35258cd31c88aa94e6d7989 |
|
MD5 | 850aa130f68fbed3631067674bc64490 |
|
BLAKE2b-256 | 04272f741be2fafcf7162fdc9ed746ccb344f80bd1b23afaf968f9691f7cba18 |
File details
Details for the file cloudwatch_to_graphite-0.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: cloudwatch_to_graphite-0.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 135a1e2ee882185387de48f1f75e1e5ec44527ebbce3fd2dc5e996445f32c7b7 |
|
MD5 | 251fd5d16db370af32101caab599445b |
|
BLAKE2b-256 | 7b63472df350323822e546b911534f6bef8e3a91579af9658bb4f12f3936cf0e |