elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
108 stars 4.93k forks source link

[8.15](backport #41570) Metricbeat: add configurable failure threshold before reporting streams as degraded #41723

Open mergify[bot] opened 1 day ago

mergify[bot] commented 1 day ago

Proposed commit message

Add configurable failure threshold before reporting streams as degraded

With this change it is possible to configure a threshold for the number of consecutive errors that may happen while fetching metrics for a given stream before the stream gets marked as DEGRADED. To configure such threshold, add a "failure_threshold": <n> to a module configuration block. Depending on the value of <n> the threshold will be configured in different ways:

When a fetch operation completes without errors the consecutive errors counter is reset and the stream is set to HEALTHY.

Checklist

Disruptive User Impact

No disruptive user impact since not specifying the new configuration key maintains the previous behavior

Author's Checklist

How to test this PR locally

Related issues

Use cases

Screenshots

Logs


This is an automatic backport of pull request #41570 done by Mergify.

mergify[bot] commented 1 day ago

Cherry-pick of f84c05b5774a83fbf3d8caa03758352ee2293f80 has failed:

On branch mergify/bp/8.15/pr-41570
Your branch is up to date with 'origin/8.15'.

You are currently cherry-picking commit f84c05b577.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
    new file:   metricbeat/mb/module/wrapper_internal_test.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
    both modified:   metricbeat/mb/module/wrapper.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

botelastic[bot] commented 1 day ago

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