oh, true. I missed that Tom suggested using {stat}.
________________________________________
From: Leif Hedstrom [[email protected]]
Sent: Thursday, May 03, 2012 9:12 AM
To: [email protected]
Cc: Nick Berry; Van Doorn, Jan R; tom ryan
Subject: Re: Restricting access to stats_over_http?
On 5/3/12 1:36 AM, Nick Berry wrote:
> I was able to use {stat} this way...
>
> records.config:
> CONFIG proxy.config.http_ui_enabled INT 2
> CONFIG proxy.config.http.enable_http_info INT 1
>
> remap.config
> map /_stat/ http://{stat} @action=allow @src_ip=127.0.0.1
>
> $ curl localhost:<port>/_stat/ -s
> <pre>
> proxy.config.proxy_name=<hostname>
> …
> proxy.process.update.state_machines=0
> </pre>
>
> I'm only using the output to parse and report metrics into monitoring, so I
> didn't require access outside of localhost.
Yeah, the core stat-pages can be used like this. But I think the OP was
asking about the JSON stats plugin?
-- Leif