Forum: NGINX monitoring cache statistics

2974d09ac2541e892966b762aad84943?d=identicon&s=25 Nime (Guest)
on 2009-05-31 21:46
(Received via mailing list)
is it possible to somehow monitor nginx proxy_cache efficiency? For
example by having a variable that can be logged in the access log to see
if the request has been cached,

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2520,2520#msg-2520
2974d09ac2541e892966b762aad84943?d=identicon&s=25 Jim Ohlstein (Guest)
on 2009-06-01 02:30
(Received via mailing list)
The answer that I got to this question was "Not yet".

See http://forum.nginx.org/read.php?2,1890,2207#msg-2209.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2520,2521#msg-2521
2974d09ac2541e892966b762aad84943?d=identicon&s=25 Nime (Guest)
on 2009-06-01 08:16
(Received via mailing list)
Thanks, Jim, I can live with "yet" too ))

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2520,2525#msg-2525
6f800fb62bece51df2d43fa6b36858fe?d=identicon&s=25 Chris Bolt (Guest)
on 2009-06-02 03:38
(Received via mailing list)
Attachment: nginx-cachestat.diff (4 KB)
> is it possible to somehow monitor nginx proxy_cache efficiency? For example by having a 
variable that can be logged in the access log to see if the request has been cached,

I wrote the attached patch to get some cache hit stats included in the
status module.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 perlish (Guest)
on 2009-06-02 18:11
(Received via mailing list)
nice stuff !

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2520,2561#msg-2561
2974d09ac2541e892966b762aad84943?d=identicon&s=25 bodomic (Guest)
on 2014-01-11 02:52
(Received via mailing list)
Hi people!

Just a small note - this patch does not work with nginx-1.4.4 :)
I think it's ok after 4.5 years, maybe there is a working version
around?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2520,246221#msg-246221
2154be8b4430488454f0a067e09863b9?d=identicon&s=25 Ruslan Ermilov (Guest)
on 2014-01-11 04:48
(Received via mailing list)
On Fri, Jan 10, 2014 at 03:50:05AM -0500, bodomic wrote:
> Hi people!
>
> Just a small note - this patch does not work with nginx-1.4.4 :)
> I think it's ok after 4.5 years, maybe there is a working version around?

There's the http://nginx.org/en/docs/http/ngx_http_status_module.html
module that includes cache statistics.

It's currently available as part of NGINX Plus,
http://nginx.com/products/
2974d09ac2541e892966b762aad84943?d=identicon&s=25 bodomic (Guest)
on 2014-01-13 07:38
(Received via mailing list)
Right, I have found that too, sorry for disturbance, thanks!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2520,246303#msg-246303
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.