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

KeyError : 'mapped' #33

Open
Sunilvakil opened this issue Apr 14, 2020 · 2 comments
Open

KeyError : 'mapped' #33

Sunilvakil opened this issue Apr 14, 2020 · 2 comments

Comments

@Sunilvakil
Copy link

self.add_metrics('mongodb.memory.' + k, ss['mem'][k])

@b-snel
Copy link

b-snel commented Jan 25, 2021

Anyone find what causes this KeyError: 'mapped' issue? I'm also getting it.

@nick2wang
Copy link

nick2wang commented Feb 2, 2021

Anyone find what causes this KeyError: 'mapped' issue? I'm also getting it.

For mongodb 4+,there is no field named 'mapped' or 'mappedWithJournal',
so change
for k in ['resident', 'virtual', 'mapped', 'mappedWithJournal']: self.add_metrics('mongodb.memory.' + k, ss['mem'][k])
to
for k in ['resident', 'virtual']: self.add_metrics('mongodb.memory.' + k, ss['mem'][k])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants