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/mongodb collect counters from db.serverStatus().metrics.document #4297

Closed
m3nthal opened this issue Jun 15, 2018 · 0 comments
Closed
Assignees
Labels
area/mongodb feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@m3nthal
Copy link

m3nthal commented Jun 15, 2018

Feature Request

It would be great to collect counters from db.serverStatus().metrics.document that "reflects document access and modification patterns" from MongoDB Reference on db.serverStatus().metrics.document.

Proposal & Desired behavior

Collect data from db.serverStatus().metrics.document and generate the following metrics:

  • documents_deleted_counter
  • documents_inserted_counter
  • documents_returned_counter
  • documents_updated_counter

db.serverStatus().metrics.document example:

{
	"deleted": 431106,
	"inserted": 296993879,
	"returned": 557450993,
	"updated": 9053
}

Use case: [Why is this important (helps with prioritizing requests)]

While opcounter provides information on how many operations were performed, metrics.document gives the total number of documents that were operated on.

@danielnelson danielnelson added feature request Requests for new plugin and for new features to existing plugins area/mongodb labels Jun 15, 2018
@Ayrdrie Ayrdrie self-assigned this Jun 22, 2018
glinton added a commit that referenced this issue Jun 29, 2018
@danielnelson danielnelson added this to the 1.8.0 milestone Jul 3, 2018
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

No branches or pull requests

3 participants