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

[8.17](backport #41825) metricbeat: suppress error when RAID metrics are enabled on non-RAID system #41856

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 2, 2024

Proposed commit message

When the Linux Metrics integration (beta) is installed with the raid metrics option enabled it causes an error if the host does not have a RAID configuration. This error causes the Agent to go into a degraded state.

This happens because we report not having /sys/block/md* devices as an error, this only means that no RAID configuration is in place.

Instead, do not report this case as an error.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues


This is an automatic backport of pull request #41825 done by [Mergify](https://mergify.com).

…system (#41825)

* metricbeat: return partial metrics errror when RAID metrics are enabled on non-RAID system

When the Linux Metrics integration (beta) is installed with the RAID
metrics option enabled it causes an error if the host does not have a
RAID configuration. This error causes the Agent to go into a degraded
state.

This happens because we report not having `/sys/block/md*` devices as an
error, this only means that no RAID configuration is in place.

Instead, return a partial metrics error for this case. This still shows up in the
agent status but does not cause a degraded state.

* use partial metrics error

* fix linter issue with iface assertion

(cherry picked from commit 444b8e4)
@mergify mergify bot added the backport label Dec 2, 2024
@mergify mergify bot requested a review from a team as a code owner December 2, 2024 15:38
@mergify mergify bot requested review from leehinman and VihasMakwana and removed request for a team December 2, 2024 15:38
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 2, 2024
@botelastic
Copy link

botelastic bot commented Dec 2, 2024

This pull request doesn't have a Team:<team> label.

@mauri870 mauri870 merged commit 28f77b9 into 8.17 Dec 2, 2024
31 checks passed
@mauri870 mauri870 deleted the mergify/bp/8.17/pr-41825 branch December 2, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant