-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Show reason for Agent / Endpoint uninstallation #197731
Comments
Pinging @elastic/fleet (Team:Fleet) |
Should we introduce a new status like "orphaned" or "uninstalled" or include them in "unenrolled"? Leaving the agents offline is misleading, there is a bug logged because those agents can't be unenrolled: #197180 |
"uninstalled" would definitely make sense in this case but why would we need "orphaned"? |
We need to add Agent is neither Tamper Protected against admin user, neither can guarantee delivering the audit about uninstallation. However Tamper Protected Endpoint won't give up easily 🙂 so in most cases Agent will be surprisingly lost whilst Endpoint will keep running and protection the machine albeit invisible in Fleet 🙁 so the orphaned status will clearly signal the need to fix Agent on those machines. PS. 8.16.0 Endpoint is already sending the |
Im working on this now, using the audit_unenroll_reason passed back to determine what agents have been uninstalled. I have a few questions but not sure who exactly to ask for each. @juliaElastic @jlind23
|
'Orphaned" and "Uninstalled" are two distinct states:
Only for the orphaned state IMO. An uninstall happening is not necessarily notable if it was on purpose. The orphaned state is always an error condition. |
When we say "legend" what do we mean here?
I think we have a specific set of color mappings for the status badges defined here that we'd want to expand: Lines 23 to 43 in 30c7ce6
Maybe @jillguyonnet or @criamico or @jen-huang would be able to offer an opinion on what we should do for color choices here? I wonder if we should just have |
Semantically, it makes sense to me to use the same colour for FYI, I have filed a followup issue to the EUI visual refresh work for deprecations cleanup, part of which is the colours used for agent status in Fleet ( The current colour use is:
So I don't think any of this should affect this change, but we might eventually want to revise this. |
Thanks @jillguyonnet! Do we want the status filter to have |
I'm a little worried about screen real estate if we add two new status to this list, but they should probably appear in that list for now so there's not an inconsistent treatment of certain statuses. |
Dropping this here to get eyes on, this is how it looks with all the statuses added. Not horrible, but could certainly be improved. Im going to work on hiding the labels that have zero matches to clean it up a bit per @kpollich recommendation. |
I agree it would be misleading to group three status under one, especially if the new status are shown on agent badges (1 offline agent + 1 orphaned agent -> 2 offline agents in the status summary, not good). I personally like the clarity of all status being explicitly represented and available for filtering. Real estate is definitely a valid concern for the status summary though, hiding status with zero agents would certainly help with that. Perhaps it could be worth involving UX folks on this question (for future improvement), since there is also the question of the deprecated non semantic colour tokens. Some of these shades of grey are a little difficult to tell apart. 🙂 |
Describe the feature:
With the work @michel-laterman has done for elastic/elastic-agent#484, Agent will send Fleet Server a reason for uninstalling when it is uninstalled. In the future, Endpoint will do the same. These components do this by calling the
POST /api/fleet/agents/:id/audit/unenroll
Fleet Server API. Note that this is a best effort API call.We should surface this reason in the Fleet UI, which would be an improvement over what happens today when an Agent is uninstalled: the Agent leaves "offline" entries in the UI.
Describe a specific use case for the feature:
Clarifying the Agent listing in the Fleet UI by distinguishing between Agents that are active but currently offline with Agents that have been uninstalled.
The text was updated successfully, but these errors were encountered: