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

feat(inputs.lustre2): Add health-check metric #15042

Merged
merged 7 commits into from
Mar 22, 2024

Conversation

lukeyeager
Copy link
Contributor

Closes #12836. Re-implements #13756 (but with tests and some additional general improvements to the plugin).

Now, the testsuite can write mock procfs files to standard locations
within the tmpdir without needing to specify which files are used.

This is really just a precursor for future commits. We want this plugin
to "just work", without needing to add more fileglob fields to the
config file for each one. Instead, the plugin will search on the
standard paths. We won't remove the old .toml fields for backwards
compatibility, but they will be deprecated and we will avoid adding new
ones. This commit makes it possible to continue using the testsuite in a
similar pattern, but we'll only need to fill in "rootdir", rather than
globs for each new type of file.
Internally, it is now easier to see the default values for
OstProcfiles and MdsProcfiles.
@telegraf-tiger telegraf-tiger bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Mar 21, 2024
@powersj
Copy link
Contributor

powersj commented Mar 21, 2024

@lukeyeager thanks for picking this back up! I've pushed a commit to your PR to resolve some linter issues, if you want to take a look.

@lukeyeager
Copy link
Contributor Author

lukeyeager commented Mar 21, 2024

I saw, thanks! I'm working on a second change right now and noticed that I need to apply my "add rootdir" commit changes to the new brw stuff added in #14813, too. Marking WIP until I get those changes in ...

EDIT: done

@lukeyeager lukeyeager changed the title feat(inputs.lustre2): parse lustre/health_check WIP: feat(inputs.lustre2): parse lustre/health_check Mar 21, 2024
@lukeyeager lukeyeager changed the title WIP: feat(inputs.lustre2): parse lustre/health_check feat(inputs.lustre2): parse lustre/health_check Mar 21, 2024
@lukeyeager
Copy link
Contributor Author

Happy to rebase+squash down to a reasonable amount of commits if/whenever you like.

@telegraf-tiger
Copy link
Contributor

Copy link
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

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

Thanks again!

@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Mar 22, 2024
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks @lukeyeager for your contribution!

@srebhan srebhan changed the title feat(inputs.lustre2): parse lustre/health_check feat(inputs.lustre2): Add health-check metric Mar 22, 2024
@srebhan srebhan merged commit 2dde6a0 into influxdata:master Mar 22, 2024
27 checks passed
@github-actions github-actions bot added this to the v1.31.0 milestone Mar 22, 2024
@lukeyeager lukeyeager deleted the lustre2-health branch March 22, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lustre: please add /sys/fs/lustre/health_check
4 participants