glances/docs/gw/elastic.rst

25 lines
500 B
ReStructuredText
Raw Normal View History

2016-03-02 15:29:19 +03:00
.. _elastic:
Elasticsearch
=============
.. note::
You need to install the `elasticsearch`_ library on your system.
2016-03-02 15:29:19 +03:00
2017-03-12 20:52:17 +03:00
You can export statistics to an ``Elasticsearch`` server. The connection
2016-03-02 15:29:19 +03:00
should be defined in the Glances configuration file as following:
.. code-block:: ini
[elasticsearch]
host=localhost
port=9200
index=glances
and run Glances with:
.. code-block:: console
$ glances --export elasticsearch
2016-03-02 15:29:19 +03:00
.. _elasticsearch: https://pypi.org/project/elasticsearch/