https://github.com/droyo/metaphite
Meta-proxy for stitching together multiple graphite servers
https://github.com/droyo/metaphite
Last synced: 5 months ago
JSON representation
Meta-proxy for stitching together multiple graphite servers
- Host: GitHub
- URL: https://github.com/droyo/metaphite
- Owner: droyo
- License: mit
- Created: 2016-01-19T18:24:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-18T23:24:52.000Z (over 10 years ago)
- Last Synced: 2024-06-20T16:46:14.345Z (about 2 years ago)
- Language: Go
- Size: 45.9 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/droyo/metaphite)
# metaphite: stitch multiple graphite servers together
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 metaphite, you can hide your disparate servers behind a
single endpoint.
# Installation
If you have a Go compiler (version 1.3 or above) installed, run
go get github.com/droyo/metaphite
Binary releases will be provided at a later time.
# Setup
Create a file `config.json`, containing mappings, like so:
{
"mappings": {
"qe": "http://qe-graphite.example.net/",
"dev": "http://dev-graphite.example.net/"
}
}
To run `metaphite`, execute
metaphite -c config.json -http=:8080
metaphite will log http requests to standard error in
the Common Log Format.
# Usage
With metaphite listening on http://localhost:8080 , open a
`render` query in your browser:
`open http://localhost:12036/render?target=aliasByMetric%28scale%dev.servers.messagebus01.rabbitmq.object_totals.{queues,exchanges,consumers,channels,connections},%202%29%29`
You should see a graph rendered by the server specified for your
`dev` mapping in your configuration.