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

Do not duplicate filesystem metrics for devices with many mount points. #1617

Conversation

dmitryax
Copy link
Member

Description:
This PR fixes a bug that produces duplicate "filesystem" metric data points for linux devices that have more than one data point. For example:

{"device":"/dev/vda1","mountpoint":"/etc/resolv.conf","fstype":"ext4","opts":"rw,relatime"}
{"device":"/dev/vda1","mountpoint":"/etc/hostname","fstype":"ext4","opts":"rw,relatime"}
{"device":"/dev/vda1","mountpoint":"/etc/hosts","fstype":"ext4","opts":"rw,relatime"}

Resolves: #1615

Testing: Added a unit test.

Copy link
Member

@james-bebbington james-bebbington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmitryax dmitryax force-pushed the ignore-multiple-mont-points-same-devide branch 2 times, most recently from c786538 to 702787e Compare August 24, 2020 01:27
This commit fixes a bug that produces duplicate "filesystem" metric data points for linux devices that have more than one data point. For example:
```
{"device":"/dev/vda1","mountpoint":"/etc/resolv.conf","fstype":"ext4","opts":"rw,relatime"}
{"device":"/dev/vda1","mountpoint":"/etc/hostname","fstype":"ext4","opts":"rw,relatime"}
{"device":"/dev/vda1","mountpoint":"/etc/hosts","fstype":"ext4","opts":"rw,relatime"}
```
@dmitryax dmitryax force-pushed the ignore-multiple-mont-points-same-devide branch from 702787e to 3a73151 Compare August 24, 2020 16:55
@codecov
Copy link

codecov bot commented Aug 24, 2020

Codecov Report

Merging #1617 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1617   +/-   ##
=======================================
  Coverage   91.92%   91.92%           
=======================================
  Files         254      254           
  Lines       17527    17534    +7     
=======================================
+ Hits        16111    16118    +7     
  Misses       1011     1011           
  Partials      405      405           
Impacted Files Coverage Δ
...al/scraper/filesystemscraper/filesystem_scraper.go 100.00% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 89.36% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23da2d4...3a73151. Read the comment docs.

@bogdandrutu bogdandrutu merged commit 15ede2d into open-telemetry:master Aug 24, 2020
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…ry#1617)

Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](hashicorp/vault@v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants