Skip to content

Add support for process.disk.io metric in system-metrics instrumentation#4397

Merged
lzchen merged 8 commits into
open-telemetry:mainfrom
Manvi2402:add-process-disk-io-metric
May 7, 2026
Merged

Add support for process.disk.io metric in system-metrics instrumentation#4397
lzchen merged 8 commits into
open-telemetry:mainfrom
Manvi2402:add-process-disk-io-metric

Conversation

@Manvi2402

Copy link
Copy Markdown
Contributor

Description

Adds support for the process.disk.io metric to opentelemetry-instrumentation-system-metrics.

Fixes #3647

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Added unit tests for process.disk.io:

  • test_process_disk_io — verifies read_bytes and write_bytes are collected correctly
  • test_process_disk_io_not_implemented_error — verifies graceful handling on platforms where io_counters() is unavailable (e.g. macOS)

Run locally with:
pytest tests/test_system_metrics.py -v -k "disk_io or process_metrics_instrument"
Result: 42 passed, 1 skipped, 0 failed

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@Manvi2402
Manvi2402 requested a review from a team as a code owner April 5, 2026 09:30

@MikeGoldsmith MikeGoldsmith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @Manvi2402 - the changes looks pretty good. I've left some suggestions we should do be fore accepting.

Comment thread CHANGELOG.md Outdated
@github-project-automation github-project-automation Bot moved this to Reviewed PRs that need fixes in Python PR digest Apr 13, 2026
@Manvi2402

Copy link
Copy Markdown
Contributor Author

Thanks for the suggestions @MikeGoldsmith . I've applied all the requested changes. Please let me know if anything else needs improvement.

@github-project-automation github-project-automation Bot moved this from Reviewed PRs that need fixes to Approved PRs in Python PR digest Apr 13, 2026
@tammy-baylis-swi

Copy link
Copy Markdown
Contributor

Overall looks good, thank you for another fix @Manvi2402 ! Please could you tox -e precommit to fix some indentation issues.

@Manvi2402

Copy link
Copy Markdown
Contributor Author

Thank you for the review @tammy-baylis-swi . I've run tox -e precommit to fix the indentation issues and pushed the changes.

Comment thread CHANGELOG.md Outdated

@tammy-baylis-swi tammy-baylis-swi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks again @Manvi2402 ! Please just remove those extra Changelog lines

@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment.
If you're still working on this, please add a comment or push new commits.

@github-actions github-actions Bot added the Stale label May 1, 2026
@lzchen
lzchen merged commit 4447323 into open-telemetry:main May 7, 2026
753 checks passed
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Python PR digest May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

add support for process.disk.io to opentelemetry-instrumentation-system-metrics

4 participants