-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[receiver/mongodbatlas] default collection interval results some metrics being not populated #18032
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
cc @schmikei, WDYT? |
I think at a bare minimum we should document usage of |
Seems worth changing to me. I think we can fairly call this a bug fix since these metrics were never meant to be missing. |
Component(s)
receiver/mongodbatlas
What happened?
Description
Currently, this receiver is taking the default receiver collection interval from the scraper library which is set to 1 minute.
Mongo Atlas API seems to provide null values for metrics if the start/end time window is 1 minute for these metrics below.
Increasing the collection interval to 3 minutes seem to allow these values to be populated correctly.
Could you please consider making the default to be set to 3 minutes and document the "collection_interval" setting for the receiver? If increasing the default is not ideal, It might worth adding this as a note in the receiver document as It took us considerable time to troubleshoot this and find how to override the default interval.
Listed metrics not having values if a low interval is set:
mongodbatlas.disk.partition.latency.average
mongodbatlas.process.asserts
mongodbatlas.process.cache.io
mongodbatlas.process.cpu.children.normalized.usage.average
mongodbatlas.process.cpu.children.usage.average
mongodbatlas.process.cpu.normalized.usage.average
mongodbatlas.process.cpu.usage.average
mongodbatlas.process.db.document.rate
mongodbatlas.process.db.operations.rate
mongodbatlas.process.db.operations.time
mongodbatlas.process.db.query_executor.scanned
mongodbatlas.process.db.query_targeting.scanned_per_returned
mongodbatlas.process.network.io
mongodbatlas.process.network.requests
mongodbatlas.process.page_faults
mongodbatlas.system.cpu.normalized.usage.average
mongodbatlas.system.cpu.usage.average
mongodbatlas.system.network.io.average
mongodbatlas.system.paging.io.average
Steps to Reproduce
Monitoring for metrics via fileexporter should suggest a metric like "mongodbatlas.process.db.document.rate" is not consistently being exported as the other metrics. You should also be able to see this by hitting the mongo API process metrics and having the start/end time set 1 minute apart.
Expected Result
All metrics to be populated with values
Actual Result
Only 31 metrics are being populated out of 50 without the interval change
Collector version
0.70
Environment information
Environment
OS: Amazon Linux
OpenTelemetry Collector configuration
Log output
No response
Additional context
Example output from Mongo API when the start/end (interval) is set to 1 minute
The text was updated successfully, but these errors were encountered: