https://github.com/psolbach/cloudgraph
Cloudwatch to Graphite ingestion
https://github.com/psolbach/cloudgraph
Last synced: 22 days ago
JSON representation
Cloudwatch to Graphite ingestion
- Host: GitHub
- URL: https://github.com/psolbach/cloudgraph
- Owner: psolbach
- Created: 2014-09-29T09:12:11.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-11-26T09:20:32.000Z (over 10 years ago)
- Last Synced: 2025-10-20T07:51:21.467Z (9 months ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cloudgraph
==========
Cloudgraph is a minimal interface for CloudWatch and Carbon/Graphite. Requires boto.
The approach of chaining, manipulating metrics prior to submitting is chosen over piping output directly to `netcat`. Set intervals in your script and have Upstart or equivalent look out for it.
### Usage
import cloudgraph
with CloudGraph(method="pickle",
namespace="default") as cg:
end = datetime.datetime.utcnow()
start = end - datetime.timedelta(minutes=5)
cg.get_metrics("HTTPStatus", dimension="foo", alt_dimension="bar")
cg.query_metrics(start, end, "Average", unit="Seconds")
Optionally, manipulate stored data in cg.response. Then:
cg.send_pickle()