[collectd] [PATCH] support new rrdcached FetchesReceived patch

Thorsten von Eicken tve at voneicken.com
Wed Jun 16 08:07:56 CEST 2010


Create statistics for rrdcached's new FetchesReceives stats, this relies 
on a patch I just submitted for rrdtool.
TvE

---src/rrdcached.c2010-06-15  00:50:21.406779100  -0700
+++  src/rrdcached.c2010-06-15  00:51:21.115194300  -0700
@@ -286,6  +286,11  @@
        sstrncpy(vl.type,  "operations",  sizeof(vl.type));
        sstrncpy(vl.type_instance,  "receive-flush",  sizeof(vl.type_instance));
      }
+     else  if  (strcasecmp("FetchesReceived",  ptr->name)  ==  0)
+     {
+       sstrncpy(vl.type,  "operations",  sizeof(vl.type));
+       sstrncpy(vl.type_instance,  "receive-fetch",  sizeof(vl.type_instance));
+     }
      else  if  (strcasecmp("JournalBytes",  ptr->name)  ==  0)
      {
        sstrncpy(vl.type,  "counter",  sizeof(vl.type));





More information about the collectd mailing list