summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e937457)
raw | patch | inline | side by side (parent: e937457)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 28 Oct 2014 17:28:56 +0000 (18:28 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 28 Oct 2014 17:28:56 +0000 (18:28 +0100) |
src/varnish.c | patch | blob | history |
diff --git a/src/varnish.c b/src/varnish.c
index bdff16a95f53e1de0d213c6a1c3cbbdd4eb74404..517258e2cf3148bd1276c3d51811a67b75a191a3 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
#endif
/* HTTP header overflows */
varnish_submit_derive (conf->instance, "objects", "total_objects", "header_overflow", stats->losthdr);
-#if !HAVE_VARNISH_V4
+#if HAVE_VARNISH_V4
+ /* N purged objects */
+ varnish_submit_derive (conf->instance, "objects", "total_objects", "purged", stats->n_obj_purged);
+#else
/* Objects sent with sendfile */
varnish_submit_derive (conf->instance, "objects", "total_objects", "sent_sendfile", stats->n_objsendfile);
/* Objects sent with write */
varnish_submit_derive (conf->instance, "totals", "total_bytes", "pipe_in", stats->s_pipe_in);
/* Piped bytes to client */
varnish_submit_derive (conf->instance, "totals", "total_bytes", "pipe_out", stats->s_pipe_out);
+ /* Number of purge operations */
+ varnish_submit_derive (conf->instance, "totals", "total_operations", "purges", stats->n_purges);
#else
/* Total header bytes */
varnish_submit_derive (conf->instance, "totals", "total_bytes", "header-bytes", stats->s_hdrbytes);