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

Continue OS collector on absent paging file #954

Merged
merged 1 commit into from
Jun 11, 2022
Merged

Continue OS collector on absent paging file #954

merged 1 commit into from
Jun 11, 2022

Conversation

breed808
Copy link
Contributor

Inactive or missing paging file should not be cause for OS collector to
fail.
Instead, log the error and continue with OS collection.

Resolves #939

@breed808 breed808 requested a review from a team as a code owner March 12, 2022 21:56
Copy link
Collaborator

@carlpett carlpett left a comment

Choose a reason for hiding this comment

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

This seems okay. As an alternative, we could just not expose the metric at all?
But this is okay too!

@breed808
Copy link
Contributor Author

Omitting the metric may reduce confusion as to why a paging file is 0 bytes in size. I'll amend the PR 👍

@breed808
Copy link
Contributor Author

@carlpett have another look and let me know if the revised changes are OK.

Copy link

@petemounce petemounce left a comment

Choose a reason for hiding this comment

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

Thanks for your efforts to fix, I really appreciate it! I hope my comments are welcome; I'm not a maintainer or anything.

collector/os.go Show resolved Hide resolved
collector/os.go Outdated Show resolved Hide resolved
Inactive or missing paging file should not be cause for OS collector to
fail.
Instead, log the error and continue with OS collection.

Signed-off-by: Ben Reedy <[email protected]>
@breed808 breed808 merged commit 3cf0fa3 into prometheus-community:master Jun 11, 2022
@breed808 breed808 deleted the os_paging branch June 11, 2022 23:27
anubhavg-icpl pushed a commit to anubhavg-icpl/windows_exporter that referenced this pull request Sep 22, 2024
Continue OS collector on absent paging file
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.

os collector fails when paging file is disabled (>= v0.17.0)
3 participants