如何在Kibana中安装弹性APM仪表盘?

问题描述 投票:0回答:1

我在让APM "按钮 "和仪表板出现在Kibana页面上时遇到了麻烦。是的,有一个 "添加APM "按钮,它告诉你该怎么做,但它似乎并没有真正发挥作用。

事实上,这并不完全正确--我能够在我的Kibana视图中 "安装 "APM "按钮 "和相应的仪表板。但我不记得我做了什么来实现这一点。

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

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

更新:

https:/www.elastic.coguideenapmservercurrentgetting-started-apm-server.html

然后

https:/www.elastic.coguideenapmservercurrentinstalling.html

然后

https:/www.elastic.coguideenapmservercurrentapm-server-configuration.html

这似乎提供了我在其他地方找不到的具体信息。使用 apm-server setup <flags> 似乎很有前途。我不知道我应该使用哪些标志(如果有的话)?

elasticsearch kibana apm
1个回答
0
投票

试试 这个 官方的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
© www.soinside.com 2019 - 2024. All rights reserved.