It is not uncommon to run separate graphite installations for separate environments. For example, separate "dev" and "production" graphite clusters. However, the reason graphite became so succesful because it provides a friendly API to query all of your metrics. With meta-graphite, you can hide your disparate servers behind a single endpoint.
If you have a Go compiler (version 1.3 or above) installed, run
go get github.com/droyo/meta-graphite
Binary releases will be provided at a later time.
Create a file config.json
, containing mappings, like so:
{
"mappings": {
"qe": "http://qe-graphite.example.net/",
"dev": "http://dev-graphite.example.net/"
}
}
To run meta-graphite
, execute
meta-graphite -c config.json -http=:8080
meta-graphite will log http requests to standard error in the Common Log Format.