Skip to content
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

[input.mongo] add fs size #10624

Closed
bdronneau opened this issue Feb 10, 2022 · 0 comments · Fixed by #10625
Closed

[input.mongo] add fs size #10624

bdronneau opened this issue Feb 10, 2022 · 0 comments · Fixed by #10625
Labels
area/mongodb feature request Requests for new plugin and for new features to existing plugins

Comments

@bdronneau
Copy link
Contributor

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

Hello,

I would like to add FsUsedSize and FsTotalSize to dbDataStats for mongodb input. These values are present in db.stats() (tested on mongo 4.0.x)

uu:ROLE> db.stats()
{
        "db" : "awesome",
        "collections" : 4,
        "views" : 0,
        "objects" : 55025651,
        "avgObjSize" : 2940.6856609684546,
        "dataSize" : 55881708978,
        "storageSize" : 99163236352,
        "numExtents" : 0,
        "indexes" : 22,
        "indexSize" : 9695956992,
        "fsUsedSize" : 314493155328,
        "fsTotalSize" : 622017689600,
        "ok" : 1,
        "operationTime" : Timestamp(1000000005, 6),
        "$clusterTime" : {
                "clusterTime" : Timestamp(1000000005, 6),
                "signature" : {
                        "hash" : BinData(0,"foo="),
                        "keyId" : NumberLong("bar")
                }
        }
}

Current behavior:

Values are not retrieved.

Desired behavior:

Have

  • mongodb_db_stats_fs_total_size
  • mongodb_db_stats_fs_used_size

Use case:

I would like to monitor disk space usage on my instance.

@bdronneau bdronneau added the feature request Requests for new plugin and for new features to existing plugins label Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mongodb feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant