On Mon, Aug 13, 2012 at 5:48 PM, david raistrick <span dir="ltr"><<a href="mailto:drais@icantclick.org" target="_blank">drais@icantclick.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Fri, 10 Aug 2012, Oddur Snær Magnússon wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What would be ideal for me is to expose a single url that just responds with<br>
counter values, possibly just the full output of “varnishstat –x”.<br>
</blockquote>
<br></div>
Um.  Sounds like you want access to the management port.<br>
<br>
from the varnishd man page:<br>
       -T address[:port]<br>
              Offer a management interface on the specified address and port.  See Management Interface  for<br>
              a list of management commands.<br>
<br>
<a href="https://www.varnish-cache.org/trac/wiki/ManagementPort" target="_blank">https://www.varnish-cache.org/<u></u>trac/wiki/ManagementPort</a><br>
<br>
<br>
For us, -T :6082 does the trick - we poll our stats from there.<br>
<br>
echo "stats" | nc $server $port<br> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">and parse and go.<br></blockquote><div><br></div><div>The implementation of "stats" wasn't really up to scratch and was ditched in Varnish 3.0. However, wrapping "varnishstat -1 -x" in a tiny CGI service is probably a 15 minute job.</div>

<div><br></div></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div>

<a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div></div><br>