]> granicus.if.org Git - pdns/commitdiff
add rec_control stats for shunts
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 21 Dec 2006 08:47:38 +0000 (08:47 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 21 Dec 2006 08:47:38 +0000 (08:47 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@932 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/rec_channel_rec.cc

index acb3744d54da20492bce9904217fb6107190f6c4..51439381acf694ab949b45a49e72ceefb9b99339 100644 (file)
@@ -190,6 +190,14 @@ RecursorControlParser::RecursorControlParser()
 
   addGetStat("resource-limits", &g_stats.resourceLimits);
   addGetStat("dlg-only-drops", &SyncRes::s_nodelegated);
+  
+  addGetStat("shunted-queries", &g_stats.shunted);
+  addGetStat("noshunt-size", &g_stats.noShuntSize);
+  addGetStat("noshunt-expired", &g_stats.noShuntExpired);
+  addGetStat("noshunt-nomatch", &g_stats.noShuntNoMatch);
+  addGetStat("noshunt-cname", &g_stats.noShuntCNAME);
+  addGetStat("noshunt-wrong-question", &g_stats.noShuntWrongQuestion);
+  addGetStat("noshunt-wrong-type", &g_stats.noShuntWrongType);
 
   addGetStat("negcache-entries", boost::bind(&SyncRes::negcache_t::size, ref(SyncRes::s_negcache)));
   addGetStat("throttle-entries", boost::bind(&SyncRes::throttle_t::size, ref(SyncRes::s_throttle)));