Hello, I’ve set up Jaeger endpoint with proxy defaults config in Consul. I dont see traces from Envoy on Jaeger. Any idea?
Also note that my application isn’t configured to emit traces but have configured envoy_extra_static_clusters_json and envoy_tracing_json within proxy defaults configs.
Hi,
Thanks for trying out Consul. Can you post your proxy_defaults config here?
{
“Kind”: “proxy-defaults”,
“Name”: “global”,
“Config”: {
“envoy_extra_static_clusters_json”: " {\n “connect_timeout”: “3.000s”,\n “dns_lookup_family”: “V4_ONLY”,\n “lb_policy”: “ROUND_ROBIN”,\n “load_assignment”: {\n “cluster_name”: “zipkin”,\n “endpoints”: [\n {\n “lb_endpoints”: [\n {\n “endpoint”: {\n “address”: {\n “socket_address”: {\n “address”: “10.10.10.10”,\n “port_value”: 9411,\n “protocol”: “TCP”\n }\n }\n }\n }\n ]\n }\n ]\n },\n “name”: “zipkin”,\n “type”: “STRICT_DNS”\n }\n ",
“envoy_tracing_json”: " {\n “http”: {\n “name”: “envoy.zipkin”,\n “config”: {\n “collector_cluster”: “zipkin”,\n “collector_endpoint”: “/api/v1/spans”,\n “shared_span_context”: false\n }\n }\n }\n "
},
“MeshGateway”: {},
“Expose”: {},
“CreateIndex”: 9564111,
“ModifyIndex”: 9797371
}
Here’s a config that seems to be working for me here. Note, I’m running Consul in Kubernetes. There are only a couple of different values, but maybe trying them out will help. Also, this repo has a working example you can reference.
{
"envoy_extra_static_clusters_json":{
"connect_timeout":"3.000s",
"dns_lookup_family":"V4_ONLY",
"lb_policy":"ROUND_ROBIN",
"load_assignment":{
"cluster_name":"jaeger_9411",
"endpoints":[
{
"lb_endpoints":[
{
"endpoint":{
"address":{
"socket_address":{
"address":"jaeger",
"port_value":9411,
"protocol":"TCP"
}
}
}
}
]
}
]
},
"name":"jaeger_9411",
"type":"STRICT_DNS"
},
"envoy_tracing_json":{
"http":{
"name":"envoy.zipkin",
"config":{
"collector_cluster":"jaeger_9411",
"collector_endpoint":"/api/v2/spans"
}
}
}
}
Hey Derek, thanks for getting back. I’ve deployed Consul on VMs. I’ve two nodes that are part of a service in Consul. Should I be deploying Jaeger client agents on both of these VMs so that the spans are captured in Jaeger. I currently have Jaeger running in all-in-one mode on one of the virtual machines. I dont see any spans being collected in Jaeger.