Graphite container for Cloudron
  • Python 68%
  • Shell 16.1%
  • Dockerfile 15.9%
Find a file
2017-09-27 15:31:19 -07:00
graphite graphite really wants to log to a directory 2016-08-15 15:16:55 -07:00
test do not trust set -e 2016-08-15 15:16:55 -07:00
Dockerfile Use latest base image 2017-02-14 12:13:24 -08:00
LICENSE Add license 2016-08-15 15:16:55 -07:00
logo.png Add a logo for gitlab 2016-08-15 22:21:23 -07:00
README.md Update README.md 2016-08-15 15:19:41 -07:00
start_graphite.sh delete any pid files from previous run 2017-09-27 15:31:19 -07:00
supervisor-carbon-cache.conf /var/log is not writable 2016-08-15 15:16:55 -07:00
supervisor-uwsgi.conf /var/log is not writable 2016-08-15 15:16:55 -07:00

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