You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The collection path for MongoDBAtlas metrics will emit Process metrics under the first collected Process Database or Process Disk due to issues in the code organization.
the poll method calls extractProcessMetrics to collect Process metrics, but internal to extractProcessMetrics before EmitForResource is called in poll the Database & Disk metrics are collected and EmitForResource'd. Because of this organization, the first Database or Disk to be collected will emit its own metrics and also the Process metrics, causing the Process metrics to be emitted with additional attributes that do not belong.
Steps to Reproduce
Collect MongoDBAtlas metrics from a non-free tier cluster (free tier does not appear to provide disk/database metrics).
Expected Result
Process metrics are emitted without mongodb_atlas.db.name or mongodb_atlas.disk.partition attributes.
Actual Result
Process metrics are usually emitted with the mongodb_atlas.db.name attribute of the first collected database.
Component(s)
receiver/mongodbatlas
What happened?
Description
The collection path for MongoDBAtlas metrics will emit Process metrics under the first collected Process Database or Process Disk due to issues in the code organization.
the
poll
method callsextractProcessMetrics
to collect Process metrics, but internal toextractProcessMetrics
beforeEmitForResource
is called inpoll
the Database & Disk metrics are collected andEmitForResource
'd. Because of this organization, the first Database or Disk to be collected will emit its own metrics and also the Process metrics, causing the Process metrics to be emitted with additional attributes that do not belong.Steps to Reproduce
Collect MongoDBAtlas metrics from a non-free tier cluster (free tier does not appear to provide disk/database metrics).
Expected Result
Process metrics are emitted without
mongodb_atlas.db.name
ormongodb_atlas.disk.partition
attributes.Actual Result
Process metrics are usually emitted with the
mongodb_atlas.db.name
attribute of the first collected database.Collector version
v0.75.0
Environment information
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: