【问题标题】:How to install/enable Elastic APM dashboard in Kibana如何在 Kibana 中安装/启用 Elastic APM 仪表板
【发布时间】:2019-12-13 18:36:04
【问题描述】:

我无法让 APM“按钮”和仪表板出现在 Kibana 页面上。是的,有“添加 APM”按钮告诉您要做什么,但它似乎并没有真正起作用。

实际上,这并不完全正确 - 我能够在我的 Kibana 视图中获得 APM“按钮”和相应的仪表板“安装”,但我不记得我必须做什么才能做到这一点.

我相信我已经安装并运行了各种组件(Elasticsearch、Kibana、APM 服务器)。 “检查 APM 服务器状态”按钮表明它已正确设置。如果我单击页面底部的“APM 仪表板”按钮,它会给我一个项目列表,但我不知道它们是什么,也不知道它们是否与 APM 有任何关系。

我不知道如何让 APM 出现在 Kibana 中。有人有什么想法吗?

更新

https://www.elastic.co/guide/en/apm/server/current/getting-started-apm-server.html

然后

https://www.elastic.co/guide/en/apm/server/current/installing.html

然后

https://www.elastic.co/guide/en/apm/server/current/apm-server-configuration.html

这似乎提供了我无法在其他地方找到的具体信息。 apm-server setup <flags> 的使用似乎很有希望。我不确定应该使用哪些标志(如果有)?

【问题讨论】:

  • 您能否提供更多信息,说明您是在本地使用 APM 还是改用 Elastic Cloud?另外,您要为哪种语言设置 APM?
  • 我没有使用 Elastic Cloud,我使用的是 Java 代理。
  • 好的,所以您使用的是本地主机,那么配置相当容易。我之前没用过Java代理,我用过Python Flask代理。很抱歉我之前没有使用过 apm-server 标志,但是 Elastic 社区在这里更活跃discuss.elastic.co。请务必在 APM 下发布您的问题。
  • @JosephGagnon 你修好了吗?

标签: elasticsearch kibana apm


【解决方案1】:

试试this官方docker-compose设置:

version: '2.2'
services:
  apm-server:
    image: docker.elastic.co/apm/apm-server:7.7.0
    depends_on:
      elasticsearch:
        condition: service_healthy
      kibana:
        condition: service_healthy
    cap_add: ["CHOWN", "DAC_OVERRIDE", "SETGID", "SETUID"]
    cap_drop: ["ALL"]
    ports:
    - 8200:8200
    networks:
    - elastic
    command: >
       apm-server -e
         -E apm-server.rum.enabled=true
         -E setup.kibana.host=kibana:5601
         -E setup.template.settings.index.number_of_replicas=0
         -E apm-server.kibana.enabled=true
         -E apm-server.kibana.host=kibana:5601
         -E output.elasticsearch.hosts=["elasticsearch:9200"]
    healthcheck:
      interval: 10s
      retries: 12
      test: curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:8200/

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
    environment:
    - bootstrap.memory_lock=true
    - cluster.name=docker-cluster
    - cluster.routing.allocation.disk.threshold_enabled=false
    - discovery.type=single-node
    - ES_JAVA_OPTS=-XX:UseAVX=2 -Xms1g -Xmx1g
    ulimits:
      memlock:
        hard: -1
        soft: -1
    volumes:
    - esdata:/usr/share/elasticsearch/data
    ports:
    - 9200:9200
    networks:
    - elastic
    healthcheck:
      interval: 20s
      retries: 10
      test: curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"'

  kibana:
    image: docker.elastic.co/kibana/kibana:7.7.0
    depends_on:
      elasticsearch:
        condition: service_healthy
    environment:
      ELASTICSEARCH_URL: http://elasticsearch:9200
      ELASTICSEARCH_HOSTS: http://elasticsearch:9200
    ports:
    - 5601:5601
    networks:
    - elastic
    healthcheck:
      interval: 10s
      retries: 20
      test: curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:5601/api/status

volumes:
  esdata:
    driver: local

networks:
  elastic:
    driver: bridge

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-06-21
    • 2016-04-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-06
    相关资源
    最近更新 更多