2016-03-02 15:29:19 +03:00
|
|
|
.. _elastic:
|
|
|
|
|
|
|
|
Elasticsearch
|
|
|
|
=============
|
2020-02-10 20:42:25 +03:00
|
|
|
.. 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
|
|
|
|
|
2018-04-02 15:07:23 +03:00
|
|
|
$ glances --export elasticsearch
|
2016-03-02 15:29:19 +03:00
|
|
|
|
2020-02-10 20:42:25 +03:00
|
|
|
.. _elasticsearch: https://pypi.org/project/elasticsearch/
|