diff options
author | nicolargo <nicolas@nicolargo.com> | 2023-01-30 10:46:39 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-01-30 10:46:39 +0100 |
commit | 30f981bd8eda0cd01ad96fce7c0444e532dcf1b5 (patch) | |
tree | 92b86c3ec98aeb656946282fb846f5289d719aea /docs/gw/couchdb.rst | |
parent | 6876490d245054532ad1abe70a5584e639b55608 (diff) |
Add a new exporter to MongoDB time-serie #2203
Diffstat (limited to 'docs/gw/couchdb.rst')
-rw-r--r-- | docs/gw/couchdb.rst | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/docs/gw/couchdb.rst b/docs/gw/couchdb.rst index 66c547ba..3e4d92bd 100644 --- a/docs/gw/couchdb.rst +++ b/docs/gw/couchdb.rst @@ -9,42 +9,35 @@ following: .. code-block:: ini - [couchdb] + [mongodb] host=localhost - port=5984 - user=root - password=root + port=27017 db=glances + user=root + password=example and run Glances with: .. code-block:: console - $ glances --export couchdb + $ glances --export mongodb -Documents are stored in native ``JSON`` format. Glances adds ``"type"`` -and ``"time"`` entries: +Documents are stored in native the configured database (glances by default) +with one collection per plugin. -- ``type``: plugin name -- ``time``: timestamp (format: "2016-09-24T16:39:08.524828Z") - -Example of Couch Document for the load stats: +Example of MongoDB Document for the load stats: .. code-block:: json { - "_id": "36cbbad81453c53ef08804cb2612d5b6", - "_rev": "1-382400899bec5615cabb99aa34df49fb", - "min15": 0.33, - "time": "2016-09-24T16:39:08.524828Z", - "min5": 0.4, - "cpucore": 4, - "load_warning": 1, - "min1": 0.5, - "history_size": 28800, - "load_critical": 5, - "type": "load", - "load_careful": 0.7 + _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 } - -You can view the result using the CouchDB utils URL: http://127.0.0.1:5984/_utils/database.html?glances. |