-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[metricbeat] has some problem for shard mongo db #10793
Comments
Not sure is my issue related, but I'm using 4.x version and also sharded setup. And plugin does not work. |
Hi @evilezh I have just setup a cluster with mongo 4 with 3 config servers, a replica set with 3 shards and 2 mongos (total 8 nodes) and everything worked as expected in 6.6 and 7.0. Can you give some details about the errors you were getting? db names were expected and correct in the output events |
Closing this as we haven't received news in a month. Feel free to reopen 🙂 |
Hi @sayden In "metrics" metricset there is always an error:
I checked the output by running
Other metricbeat metricsets work like a charm Thanks in advance |
I'm getting similar errors with mongo 4.2 and metricbeat 7.3.2
|
same error here |
I have opened a PR for fixing this: #14143 |
For confirmed bugs, please report:
mongo version 3.4.10
it's shard mongo
when no shard mongo it is ok, but in shard mongo, the db.stats() command shows like the following, the problem is the data in es has no db name,think that the "db" field is in "raw".
mongos> db.stats()
--
{
"raw" : {
"s01/localhost:10010,localhost:10020,localhost:10030" : {
"db" : "test",
"collections" : 0,
"objects" : 0,
"avgObjSize" : 0,
"dataSize" : 0,
"storageSize" : 0,
"numExtents" : 0,
"indexes" : 0,
"indexSize" : 0,
"fileSize" : 0,
"nsSizeMB" : 0,
"ok" : 1
}
},
"objects" : 0,
"avgObjSize" : NaN,
"dataSize" : 0,
"storageSize" : 0,
"numExtents" : 0,
"indexes" : 0,
"indexSize" : 0,
"fileSize" : 0,
"ok" : 1
}
The text was updated successfully, but these errors were encountered: