gpt4 book ai didi

elasticsearch - 如何在Kibana中安装/启用Elastic APM仪表板

转载 作者:行者123 更新时间:2023-12-03 02:33:59 27 4
gpt4 key购买 nike

我无法让APM“按钮”和仪表板显示在Kibana页面上。是的,有一个“添加APM”按钮可以告诉您该怎么做,但是它似乎实际上并不起作用。

实际上,这并不是完全正确的-我能够在Kibana View 中获得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>的用法似乎很有希望。我不确定应该使用哪个标志(如果有)?

最佳答案

尝试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

关于elasticsearch - 如何在Kibana中安装/启用Elastic APM仪表板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59328108/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com