trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Berry <nbe...@linkedin.com>
Subject RE: Restricting access to stats_over_http?
Date Thu, 03 May 2012 17:08:27 GMT
oh, true.  I missed that Tom suggested using {stat}.

________________________________________
From: Leif Hedstrom [zwoop@apache.org]
Sent: Thursday, May 03, 2012 9:12 AM
To: users@trafficserver.apache.org
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


Mime
View raw message