-
Notifications
You must be signed in to change notification settings - Fork 148
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 always starts http monitoring service even if metrics are disabled #2734
Comments
The gRPC port can't be disabled as it is used for internal state changes and health checks. The HTTP port should be disabled here, that seems like a bug. |
Dear Elastic team, are there any updates on that? This is currently a show-stopper for the roll-out of the Agent. thanks and best regards |
Hello @it4ewa, |
Hi @pierrehilbert , |
Hi @it4ewa, Did you find a solution because we are facing the same issue with conflict on port 6791 used by another application. We would like Elastic Agent to not use that port and replace it for example by 6790. Thanks, |
Hi @hamidallaoui , here is the workaround I got from elastic support: Enroll the Elastic Agent as usual, it will configure the monitoring port, which is problematic @ Elastic Team: Do you have any news about when this bug will be fixed (version or date)? |
reopening issue, it seems that some use cases are counting on this being present. we will figure out alternative solution |
So looking at the description of the issue in #2734 along with #2509 as it is related we need the following to be true:
Making the above true should result in this functionality behaving in a consistent and reasonable way, and fixes the security problem of the agent monitoring server potentially being exposed to a public interface by resolving #2509. We have two additional problems with this implementation:
So I think we should address this along with #2509 at the same time because they will both require a configuration change in cloud as a prerequisite. Ideally we would also expose all of the monitoring related parameters in Fleet but doing that doesn't block this implementation, because the override API allows changing these parts of the policy regardless. |
After some more investigation by Michal, we need to change the pre-configured policy in Kibana so that this won't be a breaking change in cloud. This is now blocked by elastic/kibana#168629. |
Hi @it4ewa, Thanks for the given workaround, actually we already applied that after an advice from a colleague and it is working fine. But the better solution will be to be able to change any listening port used by elastic agent without having to re-enroll it with the fleet. Thanks & Best Regards, Hamid Allaoui |
Blocked by: elastic/kibana#168629
Were facing an issue when the port (6791) being used by elastic agent for metrics is already in use in a fleet regulated agent scenario. We a running a backup solution which was not able to run due to the use of the same port.
As configuration of the ports (6791/http & 6789/grcp) does not seems to be possible for a fleet controlled agent our idea was do disable
"Agent Monitoring" in the agent policy.
After disabling it in the policy "elastic-agent inspect" reports that
monitoring, logs & metrics
are disabled.
My expectation would be that this would also trigger the http endpoint to be disabled as it is a subset of agent.monitoring
At least thats what im interpreting based on the elastic-agent-reference sample.
In the end netstat shows that both ports for http and grpc are still open which prevents us from using the agent at all.
The text was updated successfully, but these errors were encountered: