首页 新闻 会员 周边

zipkin elasticsearch 服务调用依赖数据未生成

0
悬赏园豆:10 [已关闭问题] 关闭于 2022-04-07 18:21

参照配置:https://github.com/openzipkin/zipkin/tree/master/docker/examples

docker-compose.yml文件:

version: '3.6'

services:
  storage:
    image: openzipkin/zipkin-elasticsearch6
    container_name: elasticsearch
    # Uncomment to expose the storage port for testing
    ports:
      - 9200:9200
    environment:
      - JAVA_OPTS=-verbose:gc -Xms2G -Xmx2G
    volumes:
      - ./elasticsearch/data:/elasticsearch/data
      - ./elasticsearch/logs:/elasticsearch/logs

  # The zipkin process services the UI, and also exposes a POST endpoint that
  # instrumentation can send trace data to. Scribe is enabled by default.
  zipkin:
    image: openzipkin/zipkin:latest-amd64
    container_name: zipkin
    # Environment settings are defined here https://github.com/openzipkin/zipkin/blob/master/zipkin-server/README.md#environment-variables
    environment:
      - STORAGE_TYPE=elasticsearch
      # Point the zipkin at the storage backend
      - ES_HOSTS=elasticsearch:9200
      # Uncomment to see requests to and from elasticsearch
      # - ES_HTTP_LOGGING=BODY
    ports:
      # Port used for the Zipkin UI and HTTP Api
      - 9411:9411
    depends_on:
      - storage

  dependencies:
    image: openzipkin/zipkin-dependencies
    container_name: dependencies
    entrypoint: crond -f
    environment:
       # Uncomment to see dependency processing logs
      # - ZIPKIN_LOG_LEVEL=DEBUG
      # Uncomment to adjust memory used by the dependencies job
      # - JAVA_OPTS=-verbose:gc -Xms1G -Xmx1G
      - STORAGE_TYPE=elasticsearch
      - ES_HOSTS=elasticsearch:9200
    depends_on:
      - storage

span数据是生成了,但是denpendency数据没有生成,也没有看到有相关的日志记录。

有什么办法可以排查到原因呢?

问题补充:
entrypoint:crond -f 

当把yml文件里的这段去掉,不添加执行计划时,可以生成服务的依赖数据。

看来是语法有问题?

Code_Song的主页 Code_Song | 初学一级 | 园豆:51
提问于:2022-03-31 20:19
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册