summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a9a8e4b)
raw | patch | inline | side by side (parent: a9a8e4b)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 28 Oct 2014 16:55:41 +0000 (17:55 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 28 Oct 2014 16:55:41 +0000 (17:55 +0100) |
src/varnish.c | patch | blob | history |
diff --git a/src/varnish.c b/src/varnish.c
index e3b6cec14d6a5c73484a6969b965922a1e935faf..bdff16a95f53e1de0d213c6a1c3cbbdd4eb74404 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
varnish_submit_gauge (conf->instance, "struct", "objects", "vampireobject", stats->n_vampireobject);
/* N struct objectcore */
varnish_submit_gauge (conf->instance, "struct", "objects", "objectcore", stats->n_objectcore);
+ /* N struct waitinglist */
+ varnish_submit_gauge (conf->instance, "struct", "objects", "waitinglist", stats->n_waitinglist);
#endif
/* N struct objecthead */
varnish_submit_gauge (conf->instance, "struct", "objects", "objecthead", stats->n_objecthead);
varnish_submit_derive (conf->instance, "totals", "total_bytes", "header-bytes", stats->s_hdrbytes);
/* Total body byte */
varnish_submit_derive (conf->instance, "totals", "total_bytes", "body-bytes", stats->s_bodybytes);
+#endif
+#if HAVE_VARNISH_V3 || HAVE_VARNISH_V4
+ /* Gzip operations */
+ varnish_submit_derive (conf->instance, "totals", "total_operations", "gzip", stats->n_gzip);
+ /* Gunzip operations */
+ varnish_submit_derive (conf->instance, "totals", "total_operations", "gunzip", stats->n_gunzip);
#endif
}
varnish_submit_gauge (conf->instance, "vcl", "vcl", "avail_vcl", stats->n_vcl_avail);
/* N vcl discarded */
varnish_submit_gauge (conf->instance, "vcl", "vcl", "discarded_vcl", stats->n_vcl_discard);
+#if HAVE_VARNISH_V3 || HAVE_VARNISH_V4
+ /* Loaded VMODs */
+ varnish_submit_gauge (conf->instance, "vcl", "objects", "vmod", stats->vmods);
+#endif
}
if (conf->collect_workers)