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

update telegraf module for disk usage metrics fix on macOS #1500

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

movence
Copy link
Contributor

@movence movence commented Jan 13, 2025

Description of the issue

There is an issue in scraping disk usage on macOS systems. The problem stems from gopsutil's reliance on unix.Statfs, which is not accurately retrieving disk usage data on macOS. While unix.Statfs is generally reliable on many Unix systems, it seems to be incompatible with macOS's specific filesystem (APFS) implementation or reporting mechanisms. This leads to inaccurate disk usage metrics (where all reported mount points have same used space values), impacting macOS customers' observability to their resources.

Description of changes

PR in aws/telegraf aws/telegraf#167

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Test results aws/telegraf#167

Requirements

Before commit the code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

@movence movence requested a review from a team as a code owner January 13, 2025 15:33
Copy link
Contributor

@jefchien jefchien left a comment

Choose a reason for hiding this comment

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

The commit SHA in the version looks correct. aws/telegraf@a2dfaa4

@movence movence merged commit f7ef67a into aws:main Jan 13, 2025
7 checks passed
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.

3 participants