Git Product home page Git Product logo

Comments (12)

ruflin avatar ruflin commented on July 3, 2024 1

@ph @urso @jen-huang I think we should change the default port used (if not port is specified) for fleet-server now to 80/443 as if we do it later, it is a breaking change. Thoughts?

from elastic-agent.

urso avatar urso commented on July 3, 2024 1

I think we should change the default port used (if not port is specified) for fleet-server now to 80/443 as if we do it later, it is a breaking change. Thoughts?

+1 on using default HTTP ports.
We still can do breaking changes to fleet-server.

from elastic-agent.

elasticmachine avatar elasticmachine commented on July 3, 2024

Pinging @elastic/agent (Team:Agent)

from elastic-agent.

ruflin avatar ruflin commented on July 3, 2024

@nchaulet Stumbled over this when testing Kibana without a port specified
@simitt What is apm-server doing here?

from elastic-agent.

simitt avatar simitt commented on July 3, 2024

No sure what you mean - the APM Server defaults to 8200 if no port is specified.

from elastic-agent.

nchaulet avatar nchaulet commented on July 3, 2024

I the agent is doing the same for ES and Kibana (if you do not specify port it's going to use 5601 as default)

I agree it's confusing, and the port should probably be the default for the protocol 80 or 443. @blakerouse do you think it's something we can change agent side?

Otherwise we probably need to have a fix in Kibana to always explicitly add the port to the agent policy too.

from elastic-agent.

ruflin avatar ruflin commented on July 3, 2024

@simitt What about apm agents. If I just spin up an APM Agent and point it to localhost, will it pick 8200 or 80? I think this is the scenario we have here.

I think we should do both:

  • By default point to 80 / 443
  • Always add the port by default in Kibana

from elastic-agent.

ruflin avatar ruflin commented on July 3, 2024

I also filed elastic/kibana#98869 which would help to better bubble up this issue.

from elastic-agent.

simitt avatar simitt commented on July 3, 2024

What about apm agents.

The port needs to be specified in the APM_SERVER_URL when configuring the APM agents; if no URL is configured they send data to http://localhost:8200 by default.

Thanks for opening elastic/kibana#98869. IMO it shouldn't matter which default port the Fleet Server listens to. The URL presented to users via Kibana UI or Cloud UI should always contain the fully qualified URL including the port. For cases where there is a proxy in between, the default port is not even exposed to users.

from elastic-agent.

ruflin avatar ruflin commented on July 3, 2024

@simitt If not url is specified, I understand it is http://localhost:8200. But what if http://localhost or https://localhost is set? If I remember correctly it will default to 80 / 443 and that is what I think should the elastic agent do too.

from elastic-agent.

jen-huang avatar jen-huang commented on July 3, 2024

Another similar issue elastic/beats#25669 came up where agent defaults to 5601 for Kibana port when there isn't one defined.

On Kibana side we also had to do a fix to always expose Elasticsearch port too elastic/kibana#99240 as agent will default to 9200.

Can we get rid of these default ports altogether?

from elastic-agent.

elasticmachine avatar elasticmachine commented on July 3, 2024

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

from elastic-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.