Graphite: Difference between revisions
From charlesreid1
| Line 32: | Line 32: | ||
Documentation on setting up web app: https://graphite.readthedocs.io/en/latest/config-webapp.html#nginx-gunicorn | Documentation on setting up web app: https://graphite.readthedocs.io/en/latest/config-webapp.html#nginx-gunicorn | ||
=The Essentials= | |||
==Get Data Into Graphite== | |||
Link: http://graphiteapp.org/quick-start-guides/feeding-metrics.html | |||
Easy as using netcat: | |||
<pre> | |||
$ echo "foo.bar 1 `date +%s`" | nc localhost 2003 | |||
</pre> | |||
==Get Data Out Of Graphite== | |||
Link: http://graphiteapp.org/quick-start-guides/graphing-metrics.html | |||
The web app is how you explore your metrics. | |||
Grafana is how you soup things up and trick things out for dashboards. | |||
=Flags= | =Flags= | ||
Revision as of 18:56, 29 January 2018
Also see:
Installing
Debian
See instructions here: https://graphite.readthedocs.io/en/latest/install-pip.html#installing-in-the-default-location
apt-get install python3-cffi
Graphite installs to /opt (a common location for databases), so ensure we have permission to create directories there:
sudo chown charles:root /opt/
Now install the three parts of graphite: whisper, carbon, and graphite-web:
pip3 install --user --no-binary=:all: https://github.com/graphite-project/whisper/tarball/master pip3 install --user --no-binary=:all: https://github.com/graphite-project/carbon/tarball/master pip3 install --user --no-binary=:all: https://github.com/graphite-project/graphite-web/tarball/master
Web app
Set up the web app to use a sqlite database: https://graphite.readthedocs.io/en/latest/config-database-setup.html
Documentation on setting up web app: https://graphite.readthedocs.io/en/latest/config-webapp.html#nginx-gunicorn
The Essentials
Get Data Into Graphite
Link: http://graphiteapp.org/quick-start-guides/feeding-metrics.html
Easy as using netcat:
$ echo "foo.bar 1 `date +%s`" | nc localhost 2003
Get Data Out Of Graphite
Link: http://graphiteapp.org/quick-start-guides/graphing-metrics.html
The web app is how you explore your metrics.
Grafana is how you soup things up and trick things out for dashboards.