Varnish plugin: fixed missing dataset error.
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 16 Jun 2010 16:15:51 +0000 (18:15 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 16 Jun 2010 16:15:51 +0000 (18:15 +0200)
src/types.db
src/varnish.c

index 143e72f..7a962f0 100644 (file)
@@ -159,6 +159,7 @@ time_offset         seconds:GAUGE:-1000000:1000000
 total_bytes            value:DERIVE:0:U
 total_operations       value:DERIVE:0:U
 total_requests         value:DERIVE:0:U
+total_sessions         value:DERIVE:0:U
 total_threads          value:DERIVE:0:U
 total_time_in_ms       value:DERIVE:0:U
 total_values           value:DERIVE:0:U
index 724b4fa..956d3e7 100644 (file)
@@ -336,7 +336,7 @@ static void varnish_monitor(const user_config_t *conf, struct varnish_stats *VSL
        if(conf->collect_totals)
        {
                /* Total Sessions */
-               varnish_submit_derive (conf->instance, "total_counters", "sessions", VSL_stats->s_sess);
+               varnish_submit_derive (conf->instance, "total_sessions", "sessions", VSL_stats->s_sess);
                /* Total Requests */
                varnish_submit_derive (conf->instance, "total_requests", "requests", VSL_stats->s_req);
                /* Total pipe */