elastic / beats

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

[Elastic Agent] Allow Metricbeat metricsets to report their status to the Elastic Agent #39736

Closed cmacknz closed 3 months ago

cmacknz commented 6 months ago

In https://github.com/elastic/beats/issues/39735 a status reporter was passed into the Beats object reloader and propagated through to Filebeat inputs via the input V2 interface.

Identify how to propagate the status reporter into Metricbeat metricsets to allow them to report their status to the Elastic Agent when they encounter errors.

Choose a metricset to use as a reference implementation and have it report errors using the control protocol.

elasticmachine commented 6 months ago

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

cmacknz commented 6 months ago

https://github.com/elastic/beats/issues/39737 is an obvious candidate to do alongside this one, but we could also pick a metricset that requires a username/password combination as it will have a much clearer criteria for when to report the failed state.

VihasMakwana commented 4 months ago

@jlind23 @pierrehilbert attaching the screenshot of Kibana with a custom build.

Screenshot 2024-07-19 at 2 02 29 PM
VihasMakwana commented 4 months ago

Waiting on https://github.com/elastic/beats/pull/40298

VihasMakwana commented 4 months ago
Screenshot 2024-07-24 at 3 00 33 PM

Screenshot of error event.