在Jaeger UI中找不到服务依赖项

时间:2018-01-04 12:50:20

标签: spring-boot kubernetes microservices minikube jaeger

我是jaeger的新手,我在jaeger UI中找到服务列表时遇到了问题。

下面是我准备使用我的弹簧启动应用程序在Kubernetes上使用minikube本地运行jaeger的.yaml配置。

kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/production-elasticsearch/elasticsearch.yml --namespace=kube-system

kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/jaeger-production-template.yml --namespace=kube-system

为我的spring boot app和jaeger代理创建部署以在同一容器上运行

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
    name: tax-app-deployment
spec:
    template:
      metadata:
        labels:
          app: tax-app
          version: latest
      spec:
        containers:
        - image: tax-app
          name: tax-app
          imagePullPolicy: IfNotPresent
          ports:
          - containerPort: 8080
        - image: jaegertracing/jaeger-agent
          imagePullPolicy: IfNotPresent
          name: jaeger-agent
          ports:
          - containerPort: 5775
            protocol: UDP
          - containerPort: 5778
          - containerPort: 6831
            protocol: UDP
          - containerPort: 6832
            protocol: UDP
          command:
          - "/go/bin/agent-linux"
          - "--collector.host-port=jaeger-collector.jaeger-infra.svc:14267"

春季启动应用服务yaml

apiVersion: v1
kind: Service
metadata:
  name: tax
  labels:
    app: tax-app
    jaeger-infra: tax-service
spec:
  ports:
  - name: tax-port
    port: 8080
    protocol: TCP
    targetPort: 8080
  clusterIP: None
  selector:
    jaeger-infra: jaeger-tax

我正在

  

找不到服务依赖项

1 个答案:

答案 0 :(得分:0)

必须在Jaeger中生成服务图数据。目前通过Spark工作可以实现:https://github.com/jaegertracing/spark-dependencies