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

[Fleet] Add event based telemetry for agent actions #144531

Open
juliaElastic opened this issue Nov 3, 2022 · 4 comments
Open

[Fleet] Add event based telemetry for agent actions #144531

juliaElastic opened this issue Nov 3, 2022 · 4 comments
Labels
Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@juliaElastic
Copy link
Contributor

juliaElastic commented Nov 3, 2022

We don't have a lot of insight currently on how much agent actions are being used, and what % of actions succeeded/failed.

It would be useful to add event based telemetry for outcome of actions:

  • Data to be captured: action type, how many agents actioned, succeeded, failed, still in progress.
  • Implementation options:
    • Hourly telemetry on the overall action statuses (x succeeded, x failed, x in progress) - similarly to /action_status API being called regularly to report on Agent activity UI.
    • Hourly telemetry could include the most common (top 3) error messages, to have some insight on the most common errors.
    • Event based telemetry for each agent action ack would probably be an overkill as it could potentially trigger thousands of events for bulk actions.

Telemetry would be also useful to track usage/errors of new actions: request diagnostics, remote restart.

A corresponding indexer and job will be needed to index the data in telemetry cluster.

Related:

@juliaElastic juliaElastic added the Team:Fleet Team label for Observability Data Collection Fleet team label Nov 3, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@amitkanfer
Copy link

YES!

@juliaElastic
Copy link
Contributor Author

@kpollich raised this issue to add telemetry on agent actions, please review

@kpollich
Copy link
Member

kpollich commented Nov 3, 2022

Thanks, @juliaElastic - this looks like a great set of meaningful enhancements to our telemetry sender.

I think there's maybe some duplication of effort with the private issue I just linked above, though having separate telemetry more closely related to actions seems extremely useful.

I initially marked this as Needs Definition, but I think this is in a pretty workable state already. Thanks for the great description 🙂 - let's plan this for Sprint 4/8.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

4 participants