blob: 3e4d92bd6bc403b7cc04c68d2f0b4eb4ce3a4224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
.. _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]
host=localhost
port=27017
db=glances
user=root
password=example
and run Glances with:
.. code-block:: console
$ glances --export mongodb
Documents are stored in native the configured database (glances by default)
with one collection per plugin.
Example of MongoDB Document for the load stats:
.. code-block:: json
{
_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
}
|