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

Elastic Agent should allow a namespace to be configured #25350

Closed
ph opened this issue Apr 27, 2021 · 6 comments · Fixed by #26439
Closed

Elastic Agent should allow a namespace to be configured #25350

ph opened this issue Apr 27, 2021 · 6 comments · Fixed by #26439
Labels
bug Team:Elastic-Agent Label for the Agent team v7.14.0

Comments

@ph
Copy link
Contributor

ph commented Apr 27, 2021

As a user I should be able to select to which namespace internal monitoring and log collection should be send.

agent:
  monitoring:
    enabled: true
+   namespace: test_1
    use_output: default
    logs: true
    metrics: true

based on the bug reporting from #23020

@ph ph added bug Team:Fleet Label for the Fleet team 7.14 Candidate labels Apr 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/fleet (Team:Fleet)

@ph
Copy link
Contributor Author

ph commented Apr 27, 2021

@jen-huang Looking at this, I don't think it's a lot of effort on our side to add this behavior.

Buts I think there is a bit more on your side that we may have missed:

  • How a user can configure a namespace, what is the UX experience?
  • The permissions block in the agent policy need to also contains the metrics and logs destination so fleet server can create them.

I think we should keep the logic simple on the fleet-server and fleet should dictate what are all the permission an elastic agent needs.

@ph ph added Team:Elastic-Agent Label for the Agent team and removed Team:Fleet Label for the Fleet team labels Apr 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@jen-huang
Copy link

How a user can configure a namespace, what is the UX experience?

This one is easy, we already have this UI here that collects namespace on agent policy level. We just need to populate the agent.monitoring block to include the new namespace field.

image

The permissions block in the agent policy need to also contains the metrics and logs destination so fleet server can create them.

Can you expand on this a bit? Currently the agent policy yaml contains these permissions for metrics-* and logs-*, isn't this sufficient?

image

@ph
Copy link
Contributor Author

ph commented Apr 27, 2021

Can you expand on this a bit? Currently the agent policy yaml contains these permissions for metrics-* and logs-*, isn't this sufficient?

This is currently enough, but as soon as the permission block target non wildcard indices they would need to include the data stream for the logs and metric collection. We could potentially land this in 7.14.

@jen-huang
Copy link

as soon as the permission block target non wildcard indices they would need to include the data stream for the logs and metric collection

Understood, but we don't have this yet so I don't want to conflate the issue 🙂 I created elastic/kibana#98542 for the Fleet part of the work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Elastic-Agent Label for the Agent team v7.14.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants