elastic / elastic-agent-shipper

Data shipper for the Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
9 stars 17 forks source link

Add Elasticsearch output status reporter #239

Closed fearful-symmetry closed 1 year ago

fearful-symmetry commented 1 year ago

What does this PR do?

closes https://github.com/elastic/elastic-agent-shipper/issues/174

This adds a reporting utility to the elasticsearch output, which accepts a callback that updates the unit state if the output fails for a given number of seconds.

I've tested this, but between https://github.com/elastic/elastic-agent-shipper/issues/240 and https://github.com/elastic/beats/issues/34319 it's a tad hard to test.

Checklist

mergify[bot] commented 1 year ago

This pull request does not have a backport label. If this is a bug or security fix, could you label this PR @fearful-symmetry? 🙏. For such, you'll need to label your PR with:

To fixup this pull request, you need to add the backport labels for the needed branches, such as:

elasticmachine commented 1 year ago

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

#### Build stats * Start Time: 2023-02-14T19:22:36.617+0000 * Duration: 16 min 39 sec

:grey_exclamation: Flaky test report

No test was executed to be analysed.

:robot: GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with: - `/test` : Re-trigger the build.

fearful-symmetry commented 1 year ago

/test