-
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
Add totalsize metric in MongoDB collstats metricset #42003
Comments
We should revisit all the collstats metrics as I think we should add couple other important metrics as well. |
This confuses me a bit: it looks like |
That's right, this is what I noticed as well while checking the beats code. That we are returning just the usage metrics for the collections from the top command. Listed here as well. We are not having any other metrics. Hence I pointed out we might want to revisit the complete collstats module.
I think we don't have any way other than using the collstats command, is that right ? |
That's my understanding (I haven't found any other way) |
@ishleenk17 I've come up with a "PoC" (kinda): eb7bbcb If this solution makes sense I will proceed and expand it with other |
This looks fine. Thanks Stefan. |
I suggest: Please let me know what do you think. P.S. I've updated the PoC a bit (introduced |
@ishleenk17 done and PR is ready for review - #42171 |
Describe the enhancement:
Add the totalsize metric to mongodb collstats.
This is an important metric to report the total size of the collection.
Once this is added to the beats module, we should add the same to Integrations datastream as well.
The text was updated successfully, but these errors were encountered: