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.16](backport #41570) Metricbeat: add configurable failure threshold before reporting streams as degraded #41722

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.

botelastic[bot] commented 1 day ago

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