summaryrefslogtreecommitdiffstats
path: root/docs/gw/statsd.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gw/statsd.rst')
-rw-r--r--docs/gw/statsd.rst33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/gw/statsd.rst b/docs/gw/statsd.rst
new file mode 100644
index 00000000..8b55ba6f
--- /dev/null
+++ b/docs/gw/statsd.rst
@@ -0,0 +1,33 @@
+.. _statsd:
+
+StatsD
+======
+
+You can export statistics to a ``StatsD`` server (welcome to Graphite!).
+The connection should be defined in the Glances configuration file as
+following:
+
+.. code-block:: ini
+
+ [statsd]
+ host=localhost
+ port=8125
+ prefix=glances
+
+.. note:: The ``prefix`` is optional (``glances`` by default)
+
+and run Glances with:
+
+.. code-block:: console
+
+ $ glances --export-statsd
+
+Glances will generate stats as:
+
+::
+
+ 'glances.cpu.user': 12.5,
+ 'glances.cpu.total': 14.9,
+ 'glances.load.cpucore': 4,
+ 'glances.load.min1': 0.19,
+ ...