elasticsearch-7.12.1, elasticsearch-7.14.1
ERROR: cannot load service names: Request processing failed; nested exception is java.lang.IllegalStateException: response for update-template failed: {"error":{"root_cause":[{"type":"invalid_index_template_exception","reason":"index_template [zipkin:span_template] invalid, cause [Validation Failed: 1: index_pattern [zipkin:span-] must not contain a ':';]"}],"type":"invalid_index_template_exception","reason":"index_template [zipkin:span_template] invalid, cause [Validation Failed: 1: index_pattern [zipkin:span-] must not contain a ':';]"},"status":400}
elasticsearch-7.0.0, elasticsearch-7.7.1
ERROR: cannot load service names: Request processing failed; nested exception is java.lang.IllegalStateException: response for update-template failed: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Setting index.mapper.dynamic was removed after version 6.0.0"}],"type":"illegal_argument_exception","reason":"Setting index.mapper.dynamic was removed after version 6.0.0"},"status":400}
Hi Team
I am new to ZipKin. I installed the ZipKin server. When i tried to run these commands. java -jar zipkin. curl -SSL https://zipkin.io/quickstart.sh | bash -s
java -jar zipkin.jar i get unable to access jar file. I have installed java 8.Can you please advice.
This is my zipkin manifest file
apiVersion: v1
kind: Service
metadata:
name: zipkin
labels:
app: zipkin
spec:
type: ClusterIP
ports:
apiVersion: apps/v1
kind: Deployment
metadata:
name: zipkin
labels:
name: zipkin
spec:
replicas: 1
selector:
matchLabels:
app: zipkin
template:
metadata:
labels:
app: zipkin
spec:
containers:
- name: zipkin
image: openzipkin/zipkin:2.22
ports:
- containerPort: 9411
env:
- name: JAVA_OPTS
value: "
-Xms512m -Xmx512m
-Dlogging.level.zipkin=DEBUG
-Dlogging.level.zipkin2=DEBUG
-Duser.timezone=Asia/Shanghai
"
- name: STORAGE_TYPE
value: "elasticsearch" #Set the data to be stored in ES
- name: ES_HOSTS
value: "elasticsearch-master:9200" #ES address
- name: ES_INDEX #Set the zipkin index name stored in ES
value: "zipkin"
- name: ES_INDEX_REPLICAS #ES index copy number
value: "1"
- name: ES_INDEX_SHARDS #ES fragment number
value: "3"
- name: ES_USERNAME #If ES enables x-pack, you need to set a user name and password
value: "elastic"
- name: ES_PASSWORD
value: "CXExcDB4qGvRBDzei2Bj"
- name: KAFKA_BOOTSTRAP_SERVERS #Kafka address
value: "kafka:9092"
- name: KAFKA_TOPIC #Kafka Topic name, default is "zipkin"
value: "zipkin"
- name: KAFKA_GROUP_ID #Kafka group name, default is "zipkin"
value: "zipkin"
- name: KAFKA_STREAMS #The number of threads that consume Topic, the default is 1
value: "1"
resources:
limits:
cpu: 1000m
memory: 512Mi
requests:
cpu: 500m
memory: 256Mi
Hi all, we are trying to use sleuth to send logs to zipkin. So I have added below dependencies implementation "org.springframework.cloud:spring-cloud-starter-zipkin"
implementation "org.springframework.cloud:spring-cloud-starter-sleuth"
implementation "org.springframework.cloud:spring-cloud-sleuth-zipkin"
And added below props in logback.xml[%X{traceId} %X{spanId} %X{X-Span-Export}]
With the above changes in our 2 services, we were expecting zipkin will have some logs, but nothing appeared. So then we tried to add below properties in application.propertiesspring.zipkin.base-url=http://localhost:9411
spring.zipkin.enabled=true
spring.zipkin.service.name=rcp-command
spring.sleuth.enabled=true
spring.sleuth.integration.enabled=true
spring.sleuth.sampler.rate=100
spring.sleuth.sampler.probability=1.0
spring.sleuth.sampler.percentage=1.0
spring.zipkin.sender.type=web
And still dont see logs / service name in zipkin.
Can you see what am I doing wrong here. Out apps have cloud-stream dependencies as well. And also noted that in logs I am getting X-span-export coming as false. For ex: [3e205e41db60212f 77a405a53d62c9fa false]
Hi all, I'd like to ask about zipkin with grafana dashboard.
I installed zipkin with grafana using official docker-compose (but storage is elasticsearch. because when I use mysql, an access error happens. es doesn't happen)
https://github.com/openzipkin-attic/docker-zipkin#elasticsearch
By the way, I am using zipkin for collecting graphQL execution time with nodejs application. (using opentelemetry library such as HttpInstrumentation, ExpressInstrumentation and GraphQLInstrumentation)
And I'd like to show which graphQL queries are slow on some graphical chart.
I try to use prometheus metrics explorers below with the grafana dashboard.
zipkin_collector_messages_total
zipkin_collector_bytes_total
zipkin_collector_spans_total
zipkin_collector_spans_dropped_total
zipkin_collector_messages_dropped_total
But it looks like they can't filter any metrics tags on grafana dashboard ... (because in terms of above controller, we can only use 'instance, job, transport' labels)
Could we do that by prometheus metrics explorers? Or, for filtering by metrics, should we use data storage (such as elastic search, mysql, etc) on grafana dashboard?
Thank you so much.
Hi all, sorry for asking again.
I changed my strategy. Actually, zipkin + Grafana dashboard is not suitable for my requirements.
I switched to using elasticsearch storage with zipkin and I'd like to show Kibana Visualize(dashboard) for showing tracing information.
By the way, how is "tags" index enabled for the Visualize field?
As far as I know, we have two approaches. 1: query indexing 2: template index.
However, we can filter by tags ( https://github.com/openzipkin/zipkin/tree/master/zipkin-storage/elasticsearch#query-indexing ) but '_q' doesn't appear in the field.
And it looks like we can use the template index approach. (https://github.com/openzipkin/zipkin-support/issues/46#issuecomment-742872992)
I tried to fetch it. But I don't get any template index.
$ curl -s 'localhost:9200/_index_template'
{"index_templates":[]}
My environment:
official docker compose yaml of zipkin
official docker compose yaml of elasticsearch7 (openzipkin/zipkin-elasticsearch7) (version 7.9.3)
oss Kibana image (docker.elastic.co/kibana/kibana-oss:7.9.3) (version 7.9.3)
Hi. I’ve been working on an open source project called Kronicle that includes an integration with Zipkin. Here’s some info in case any is interested.
It combines dependency data from Zipkin with dependencies defined in YAML to render an interactive architecture diagram with filters: https://demo.kronicle.tech/all-components/dependencies
It uses Zipkin traces to render “call graphs”: https://demo.kronicle.tech/components/kronicle-service/call-graphs
It uses Zipkin traces to calculate response times: https://demo.kronicle.tech/components/kronicle-service/response-times
Kronicle uses Zipkin’s Get Traces API endpoint rather than Zipkin’s Get Dependencies API endpoint, as the data from the Get Traces endpoint is much richer.
There’s more info available on https://kronicle.tech
Context is single developer local desktop using containers. Right now we have OpenTelemetry data streaming to zipkin. Following the Zipkin quickstart we are here:
:: version 2.23.4 :: commit 3827477 ::2021-10-20 21:07:13.735 INFO [/] 1 --- [oss-http-*:9411] c.l.a.s.Server : Serving HTTP at /[0:0:0:0:0:0:0:0%0]:9411 - http://127.0.0.1:9411/
Terminating due to java.lang.OutOfMemoryError: Java heap space
As best we can tell this might be (but we really aren't sure):
openzipkin/zipkin-dependencies#143
We appreciate any hints or tips.
Hello, again. I got the following errors when I tried to build a local docker image (on an amd64 machine):
$ git clone https://github.com/openzipkin/zipkin.git
$ cd zipkin
$ ./build-bin/docker/docker_build openzipkin/zipkin:test
> [install 5/5] RUN /code/build-bin/maven/maven_build_or_unjar io.zipkin zipkin-server master exec && mv zipkin-server zipkin && /code/build-bin/maven/maven_build_or_unjar io.zipkin zipkin-server master slim && mv zipkin-server zipkin-slim:
#17 0.412 *** Building snapshot from source...
#17 43.30 [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:npm (npm lint) on project zipkin-lens: Failed to run task: 'npm run lint' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 254 (Exit value: 254) -> [Help 1]
Any ideas to solve this? There should be some prerequisites before running the command?
spring-cloud-sleuth-zipkin
, check the docs for a full example: https://docs.spring.io/spring-cloud-sleuth/docs/current/reference/htmlsingle/#how-to-set-up-sleuth-with-brave-zipkin-http
- kind: Deployment
apiVersion: apps/v1
metadata:
name: zipkin
namespace: zipkin
labels:
app: zipkin
spec:
replicas: 1
selector:
matchLabels:
app: zipkin
template:
metadata:
labels:
app: zipkin
spec:
containers:
- name: zipkin
image: 'openzipkin/zipkin:latest'
ports:
- hostPort: 9411
containerPort: 9411
protocol: TCP
env:
- name: ES_HOSTS
valueFrom:
configMapKeyRef:
name: zipkin-config
key: es_hosts
- name: STORAGE_TYPE
valueFrom:
configMapKeyRef:
name: zipkin-config
key: storage_type
- kind: Service
apiVersion: v1
metadata:
name: zipkin-service
namespace: zipkin
spec:
ports:
- protocol: TCP
port: 80
targetPort: 9411
nodePort: 32733
selector:
app: zipkin
type: NodePort
- kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: zipkin-ingress-config
namespace: zipkin
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
- host: examplehostname
http:
paths:
- path: /zipkin(/|$)(.*)
pathType: ImplementationSpecific
backend:
serviceName: zipkin-service
servicePort: 80