- Python 68%
- Shell 16.1%
- Dockerfile 15.9%
| graphite | ||
| test | ||
| Dockerfile | ||
| LICENSE | ||
| logo.png | ||
| README.md | ||
| start_graphite.sh | ||
| supervisor-carbon-cache.conf | ||
| supervisor-uwsgi.conf | ||
The Graphite app collects metrics about apps and exposes the data using an API for visualization.
Components
-
carbon-cache - runs on tcp port 2003 getting data. it stores this data in whisper db
-
whisper db - a db optimized for time based data (RRD)
-
graphite - API and Web site. The API feeds data to carbon-cache. It can also render graphs. This is a uwsgi application. It can also be served up with apache+wsgi
-
collectd
- Collects information from various sources and feed them to carbon-cache (write_graphite plugin)
- collectd runs on the host and is not part of this docker image
-
One can feed data into carbon like so : http://graphite.readthedocs.org/en/latest/feeding-carbon.html
-
Graphite rendering API is at http://graphite.readthedocs.org/en/latest/render_api.html
storage-schemas.conf
- This file specifies how each metric is stored. Metrics are matched top-bottom and first match is used
- Retentions here specifies how the data is retained
storage-aggregation.conf
- How to aggregate data into lower precisions. We don't provide this file and the default is average
- xFilesFactor specifies how much values need to present for us to try to aggregate in the first place
- aggregationMethod specifies the method used to aggregate
Note that aggregation is used for downsampling to other interval periods. If you send multiple data points in the interval that storage-schemas.conf has been configure for, then carbon will keep the latest value.
More reading - https://github.com/etsy/statsd/blob/master/docs/graphite.md
Building
docker run -tiP -v /tmp/graphitedata:/app/data girish/graphite