From charlesreid1

No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
Code: https://charlesreid1.com:3000/charlesreid1/graphite
What is Graphite? It is a tool for building time series databases and displaying the results via dashboards.
 
Old pages: [[Graphite/Old]] {{,}} [[Graphite/Old2]]


=Installing=
=Installing=


==Debian==
Just use Docker.
 
See instructions here: https://graphite.readthedocs.io/en/latest/install-pip.html#installing-in-the-default-location
 
<pre>
apt-get install python3-cffi
</pre>


Graphite installs to /opt (a common location for databases), so ensure we have permission to create directories there:
See [[Docker/System Stats#graphite docker]].


<pre>
Charlesreid1 git repo: https://git.charlesreid1.com/docker/d-graphite
sudo chown charles:root /opt/
</pre>


Now install the three parts of graphite: whisper, carbon, and graphite-web:
=Basic Operations=


<pre>
==Data I/O==
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
</pre>


==Web app==
===Getting data into graphite===
 
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
Link: http://graphiteapp.org/quick-start-guides/feeding-metrics.html
Line 45: Line 23:
</pre>
</pre>


==Get Data Out Of Graphite==
===Getting data out of graphite===


Link: http://graphiteapp.org/quick-start-guides/graphing-metrics.html
Link: http://graphiteapp.org/quick-start-guides/graphing-metrics.html
Line 51: Line 29:
The web app is how you explore your metrics.  
The web app is how you explore your metrics.  


Grafana is how you soup things up and trick things out for dashboards.
[[Grafana]] is how you soup things up and trick things out for dashboards.
 
=Related Pages=
 
Code: https://git.charlesreid1.com/docker/d-graphite
 
Old pages: [[Graphite/Old]] {{,}} [[Graphite/Old2]]


=Flags=
=Flags=
Line 60: Line 44:
[[Category:Logging]]
[[Category:Logging]]
[[Category:Time Series]]
[[Category:Time Series]]
{{DashboardFlag}}

Latest revision as of 02:59, 10 March 2019

What is Graphite? It is a tool for building time series databases and displaying the results via dashboards.

Installing

Just use Docker.

See Docker/System Stats#graphite docker.

Charlesreid1 git repo: https://git.charlesreid1.com/docker/d-graphite

Basic Operations

Data I/O

Getting 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

Getting 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.

Related Pages

Code: https://git.charlesreid1.com/docker/d-graphite

Old pages: Graphite/Old  · Graphite/Old2

Flags