Changing port for zipkin-web?

551 views
Skip to first unread message

Kristof Adriaenssens

unread,
May 14, 2013, 3:09:29 PM5/14/13
to zipki...@googlegroups.com
Hi,

I build the distributions for query/collector/web.
Zipkin-web defaults to port 8080. Can it be changed easily without changing code?
I tried updating config/production.scala (copy of web-dev.scala) by changing following line:

WebBuilder("http://localhost:8080/", queryClient) 
changed into 
WebBuilder("http://localhost:8081/", queryClient)

but it still tries to use 8080.


Thanks,
Kristof

Brian Degenhardt

unread,
May 14, 2013, 3:13:52 PM5/14/13
to zipkin-user
Try this:

WebBuilder("http://localhost:8081/", queryClient, serverBuilder = ZipkinServerBuilder(8081,9902))

That first url argument is just the http url to direct clients when they connect.  The ZipkinServerBuilder bit is which port to actually connect to.
This is so you can run a cluster of zipkin web servers in front of a load balancer on a separate host/port.



--
 
---
You received this message because you are subscribed to the Google Groups "zipkin-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipkin-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kristof Adriaenssens

unread,
May 15, 2013, 3:10:56 AM5/15/13
to zipki...@googlegroups.com
Hi Brian,

It works!
This is how my config file looks like now (added import for ZipkinServerBuilder):

import com.twitter.finagle.zipkin.thrift.ZipkinTracer
import com.twitter.zipkin.builder.{QueryClient, WebBuilder, ZipkinServerBuilder}
import java.net.{InetSocketAddress, InetAddress}

val queryClient = QueryClient.static(new InetSocketAddress(InetAddress.getLocalHost, 9411)) map {
  _.tracerFactory(ZipkinTracer())
}
WebBuilder("http://localhost:8081/", queryClient, serverBuilder = ZipkinServerBuilder(8081,9902))


Thanks!
Kristof

徐瑞琦

unread,
Sep 15, 2015, 12:51:15 PM9/15/15
to zipkin-user
Now zipkin uses gradle and I searched the Internet from bottom to top, yet no one gives the answer
Then I finally found out that you have to modify the related build.gradle file in zipkin-web directory.
Like below:

   args = [
        "-zipkin.web.resourcesRoot=${projectDir}/src/main/resources",
        "-admin.port=:10991"
    ]

change args to this format will work


在 2013年5月15日星期三 UTC+8上午3:09:29,Kristof Adriaenssens写道:
Reply all
Reply to author
Forward
0 new messages