zipkin and nginx/haproxy

1,284 views
Skip to first unread message

Joe Crobak

unread,
Jun 2, 2014, 4:40:09 PM6/2/14
to zipki...@googlegroups.com
We're using nginx as a reverse proxy and are looking to integrate it with zipkin. Has anyone done this? The solution I'm currently planning is to log timing information (start of request, end of request, length of upstream request) and consume that data in a separate process to approximate the sr, cs, cr, ss events.

If someone has implemented (or can think of) a better solution, it'd to hear.

Thanks,
Joe

hacfi

unread,
Jul 21, 2014, 7:56:35 AM7/21/14
to zipki...@googlegroups.com
Hi Joe,
have a look at http://itszero.github.io/blog/2014/03/03/introduction-to-twitters-zipkin/ . It’s explained there but haven’t tried it yet.

Joe Crobak

unread,
Jul 23, 2014, 11:59:30 AM7/23/14
to zipki...@googlegroups.com
Hi,

Thanks for sending over the link. I find it really useful conceptually*, but it doesn't seem to have any technical details of instrumenting nginx.

Best,
Joe

* it'd be great if the zipkin docs themselves had a good overview like this one... or maybe linked to it.


--

---
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/d/optout.

Jeff Smick

unread,
Jul 23, 2014, 12:06:55 PM7/23/14
to zipki...@googlegroups.com
Better documentation has long been on my TODO list. Unfortunately it keeps getting bumped for higher priority things.

You can dig around in Finagle's implementation and follow its model [1]. Essentially Zipkin needs a Span struct filled in with Annotations that mark when a request is received or sent and when a response is received or sent. There's a method in Trace.scala [2] that shows how this is handled.

I've created an issue as a reminder to myself: https://github.com/twitter/zipkin/issues/401

--
Jeff Smick
@sprsquish
Reply all
Reply to author
Forward
0 new messages