Code

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 143e72fa73458bd1dae521aa1af239b8046abb47..7a962f0be74408ce6e1d7cfca9115420802112d8 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 724b4faa024df5b3ecfd8b8e006fd1b432314fd3..956d3e7394855c29bab1c0e6642aed7807de1171 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 */