summaryrefslogtreecommitdiffstats
path: root/docs/gw/graphite.rst
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2021-05-12 07:24:38 +0200
committernicolargo <nicolas@nicolargo.com>2021-05-12 07:24:38 +0200
commite8e03437593e1beb95addd80dabf88e9e2c026eb (patch)
treeeeffc397da52a20535d5b136e467f290034fcec4 /docs/gw/graphite.rst
parent0448e3432f5d48185d4c9e2ecff8b801fcfabb9e (diff)
parentdeccc887c0035b5c8ada23db93c527c7d6f7fdfe (diff)
Merge branch 'issue1854' into develop
Diffstat (limited to 'docs/gw/graphite.rst')
-rw-r--r--docs/gw/graphite.rst34
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/gw/graphite.rst b/docs/gw/graphite.rst
new file mode 100644
index 00000000..a2939802
--- /dev/null
+++ b/docs/gw/graphite.rst
@@ -0,0 +1,34 @@
+.. _graphite:
+
+Graphite
+========
+
+You can export statistics to a ``Graphite`` server (time series server).
+
+The connection should be defined in the Glances configuration file as
+following:
+
+.. code-block:: ini
+
+ [graphite]
+ host=localhost
+ port=2003
+ # Prefix will be added for all measurement name
+ # Ex: prefix=foo
+ # => foo.cpu
+ # => foo.mem
+ # You can also use dynamic values
+ #prefix=`hostname`
+ prefix=glances
+
+and run Glances with:
+
+.. code-block:: console
+
+ $ glances --export graphite
+
+Note 1: the port defines the TCP port where the Graphite listen plain-text requests.
+
+Note 2: As many time-series database, only integer and float are supported in the Graphite datamodel.
+
+Note 3: Under the wood, Glances uses GraphiteSender Python lib (https://github.com/NicoAdrian/graphitesender).