-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metricbeat: MongoDB collstats metricset (#5852)
Add mongodb collstats metricset
- Loading branch information
Showing
14 changed files
with
671 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-mongodb-collstats]] | ||
=== MongoDB collstats metricset | ||
|
||
experimental[] | ||
|
||
include::../../../module/mongodb/collstats/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-mongodb,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/mongodb/collstats/_meta/data.json[] | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"@timestamp": "2016-05-23T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "beathost", | ||
"name": "beathost" | ||
}, | ||
"metricset": { | ||
"host": "localhost", | ||
"module": "mongodb", | ||
"name": "collstats", | ||
"rtt": 44269 | ||
}, | ||
"mongodb": { | ||
"collstats": { | ||
"db": "admin", | ||
"collection": "system.users", | ||
"name": "admin.system.users", | ||
"total": { | ||
"time": { | ||
"us": 54756221 | ||
}, | ||
"count": 3159951 | ||
}, | ||
"lock": { | ||
"read": { | ||
"time": { | ||
"us": 54747284 | ||
}, | ||
"count": 3159944 | ||
}, | ||
"write": { | ||
"time": { | ||
"us": 8937 | ||
}, | ||
"count": 7 | ||
} | ||
}, | ||
"queries": { | ||
"time": { | ||
"us": 2310 | ||
}, | ||
"count": 15 | ||
}, | ||
"getmore": { | ||
"time": { | ||
"us": 0 | ||
}, | ||
"count": 0 | ||
}, | ||
"insert": { | ||
"time": { | ||
"us": 8937 | ||
}, | ||
"count": 7 | ||
}, | ||
"update": { | ||
"time": { | ||
"us": 0 | ||
}, | ||
"count": 0 | ||
}, | ||
"remove": { | ||
"time": { | ||
"us": 0 | ||
}, | ||
"count": 0 | ||
}, | ||
"commands": { | ||
"time": { | ||
"us": 50743698 | ||
}, | ||
"count": 45793 | ||
} | ||
} | ||
}, | ||
"type": "metricsets" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This is the `collstats` metricset of the module mongodb. | ||
|
||
It is using the `top` adminitrative command to return usage statistics for each collection. It provides the amount of time, in microseconds, used and a count of operations for the following types: | ||
|
||
- total | ||
- readLock | ||
- writeLock | ||
- queries | ||
- getmore | ||
- insert | ||
- update | ||
- remove | ||
- commands |
Oops, something went wrong.