Skip to content

Commit

Permalink
MongoDB Atlas Receiver makes some minor refactor/generation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKurek committed Dec 9, 2024
1 parent 82e6cea commit a21ceac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions receiver/mongodbatlasreceiver/generated_component_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions receiver/mongodbatlasreceiver/internal/metric_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ func calculateTotalMetrics(

for _, meas := range measurements {
switch meas.Name {
case "DISK_PARTITION_THROUGHPUT_READ":
fallthrough
case "DISK_PARTITION_THROUGHPUT_WRITE":
case "DISK_PARTITION_THROUGHPUT_READ", "DISK_PARTITION_THROUGHPUT_WRITE":
if dptTotalMeas == nil {
dptTotalMeas = cloneMeasurement(meas)
dptTotalMeas.Name = "DISK_PARTITION_THROUGHPUT_TOTAL"
Expand Down

0 comments on commit a21ceac

Please sign in to comment.