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

Allow /_xpack/usage endpoint to optionally run on the local node #53916

Open
legrego opened this issue Mar 21, 2020 · 4 comments
Open

Allow /_xpack/usage endpoint to optionally run on the local node #53916

legrego opened this issue Mar 21, 2020 · 4 comments
Labels
:Core/Infra/Core Core issues without another label >enhancement Team:Core/Infra Meta label for core/infra team

Comments

@legrego
Copy link
Member

legrego commented Mar 21, 2020

Currently, /_xpack/usage returns results from the current master node. It would be useful to add a ?local=true option to allow this endpoint to return results from the local node.

Concrete use case: We use this endpoint to detect if external identity realms are enabled, and show a warning in the Role Mappings UI if they aren't. Being able to get results from the local node would give Kibana a more accurate answer when deciding whether or not to show this warning.

Thanks @jasontedor for this suggestion

@bytebilly
Copy link
Contributor

Another use case that mentioned this feature request: Kibana uses the _xpack/usage endpoint to verify it the connection is encrypted, and so allow alerting.

There are probably workarounds for that, and I'm interested in better understanding how this could impact to other scenarions.

How much effort is needed to fetch the status from the local node when a flag is provided, as suggested in the first comment?

@bytebilly
Copy link
Contributor

@rjernst should this be labeled Core/Infra team? 🤔

@rjernst rjernst added the :Core/Infra/Core Core issues without another label label Jan 28, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jan 28, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@rjernst
Copy link
Member

rjernst commented Jan 28, 2021

I'm not sure exactly where it belongs, but I've marked it with Core/Infra for now. At glance I don't think this should be too difficult, we already have the local flag for other APIs that normally hit the master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >enhancement Team:Core/Infra Meta label for core/infra team
Projects
None yet
Development

No branches or pull requests

4 participants