glances/docs/gw/couchdb.rst

44 lines
851 B
ReStructuredText
Raw Normal View History

2016-09-24 18:02:33 +03:00
.. _couchdb:
CouchDB
=======
You can export statistics to a ``CouchDB`` server.
The connection should be defined in the Glances configuration file as
following:
.. code-block:: ini
[mongodb]
2016-09-24 18:02:33 +03:00
host=localhost
port=27017
2016-09-24 18:02:33 +03:00
db=glances
user=root
password=example
2016-09-24 18:02:33 +03:00
and run Glances with:
.. code-block:: console
$ glances --export mongodb
2016-09-24 18:02:33 +03:00
Documents are stored in native the configured database (glances by default)
with one collection per plugin.
2016-09-24 18:02:33 +03:00
Example of MongoDB Document for the load stats:
2016-09-24 18:02:33 +03:00
2017-03-12 20:52:17 +03:00
.. code-block:: json
2016-09-24 18:02:33 +03:00
{
_id: ObjectId('63d78ffee5528e543ce5af3a'),
min1: 1.46337890625,
min5: 1.09619140625,
min15: 1.07275390625,
cpucore: 4,
history_size: 1200,
load_disable: 'False',
load_careful: 0.7,
load_warning: 1,
load_critical: 5
2016-09-24 18:02:33 +03:00
}