GithubHelp home page GithubHelp logo

Setting up APM question about elk-docker HOT 4 CLOSED

duongpc avatar duongpc commented on June 20, 2024
Setting up APM question

from elk-docker.

Comments (4)

spujadas avatar spujadas commented on June 20, 2024

Generally speaking I won’t be able to help you on how to set up APM, and would recommend heading over to the Elastic forums for guidance.

Having said that, going to the URL that’s referenced in the error in your APM logs (https://www.elastic.co/guide/en/apm/guide/current/apm-quick-start.html), there are several prerequisites on the set-up of the ELK stack, including having a "Secure, encrypted connection between Kibana and Elasticsearch."

As the documentation of the image says, the services are not set up with security enabled, so you’ll have to update the configuration of the services to do so (which can be a bit fiddly, hence this not being the case by default in the image).

Going back to the APM documentation, in the Prerequisites section, Self-managed tab, there are instructions to quickly secure Elasticsearch and Kibana for testing purposes, so that would be my recommendation to move forward with your set-up.

from elk-docker.

duongpc avatar duongpc commented on June 20, 2024

Apparently ELK 8+ requires fleet setup to use APM, I was under assumption that I could get away from it by setting up APM legacy server, turns out fleet is mandatory...

I decided to downgrade to build 7.17.1

FROM sebp/elk:7.17.1

RUN curl -L -O https://artifacts.elastic.co/downloads/apm-server/apm-server-7.17.1-amd64.deb
RUN dpkg -i apm-server-7.17.1-amd64.deb

EXPOSE 8200

I was able to get kibana to recognize the APM server, however, from windows's command prompt, if I run:

curl localhost:8200
curl: (52) Empty reply from server

but inside the container, I got some result

# curl localhost:8200
{
  "build_date": "2022-02-23T22:31:58Z",
  "build_sha": "990c162bf1d5106be95d1430c6f3e98df865df7d",
  "publish_ready": true,
  "version": "7.17.1"
}

I can't quite figure out what missing, does the base image require any additional setup to allow access to port 8200?

from elk-docker.

spujadas avatar spujadas commented on June 20, 2024

Binding the exposed port to a port on the host machine should do the trick (e.g. see https://github.com/spujadas/elk-docker/blob/master/docker-compose.yml for ports 5601, 9200, 5044).

from elk-docker.

duongpc avatar duongpc commented on June 20, 2024

So by default apm-server.yml is using localhost:8200, changing it to either 0.0.0.0:8200 or :8200 will fix the connection issue

from elk-docker.

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.