-
Notifications
You must be signed in to change notification settings - Fork 144
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
[Integrations] Option to disable running integration per agent. #5813
Comments
@nimarezainia is this a request/suggestion you ever got? |
@s-karberg I would suggest moving the agent to another dedicated policy for debugging, there you can experiment with multiple agents that may have the same problem. Also you will be able to change the logging level at the policy level that would only affect this small subset of agents. |
@nimarezainia that makes sense in a way. |
The problem is that the whole concept of the policy is that its a grouping of the configuration - i.e same config is sent to the group of agents controlled by that policy. You can duplicate the policy if you have a lot of integrations. You can utilize Reusable integrations policy to also copy over your integration to other policies, if integration sprawl is your concern. Most of our user who I have come across are using this approach for agent isolation and debugging. |
hmm, then I would need e.g. X "debugging" policies because of being an MSSP. That would just increase the count of policies per fleet server then it could mean to get closer to the max https://www.elastic.co/guide/en/fleet/current/agent-policy.html#agent-policy-scale Can I maybe hear why this idea would be bad? |
Mainly because we end up with policies that have a whole lot of exceptions in them. Not to mention the complexity we have to develop in the UI, for agent x in policy y disable integration z. We have users with close to 100k agents spread across policies. More importantly we will now have a system where agent policy is not the source of truth for configuration and it's changes for each agent. It would be a lot for Fleet to administer. Perhaps I misunderstood your use case; this is just for debugging/troubleshooting correct? you can delete the policy once debugging is complete could you not? Is using a standalone agent a consideration for you? there you can control the config for each individual agent. |
A pseudo way of achieving this (but isn't currently supported across all integrations - for fleet managed) is to leverage conditions: https://www.elastic.co/guide/en/fleet/current/dynamic-input-configuration.html. You can simply add a condition that would either include or exclude a set of hosts depending on the requirements. |
Describe the enhancement:
Disable / Turn off integration per agent.
Describe a specific use case for the enhancement or feature:
I got into a case where 1 integration on a running agent started collecting/forwarding logs that couldn't be ingested and ended in Dead Letter Queue in Logstash.
It took a little bit of time to figure out this ingest problem, but while it was happening it would be really great to be able to disable/enable a integration on a agent while debugging.
What is the definition of done?
The way I see this could be integration was you expand the intended integration on a agent.
Under
Inputs
have some kind of option to disable it, e.g. on the colored status icon, click on it to disable it.The text below where it's currently saying
Healthy
it could e.g. sayHealthy but disabled
The text was updated successfully, but these errors were encountered: