]> granicus.if.org Git - pdns/commitdiff
Add oustanding queries and send errors stats to the carbon export.
authorRemi Gacogne <rgacogne-github@coredump.fr>
Tue, 17 Nov 2015 14:00:27 +0000 (15:00 +0100)
committerRemi Gacogne <rgacogne-github@coredump.fr>
Tue, 17 Nov 2015 14:00:27 +0000 (15:00 +0100)
I really have no idea why I didn't include those last time,
it just makes sense to have them.

pdns/dnsdist-carbon.cc

index a6242779f52d7d6a73552c68fc1fabefaf4df189..3d21da725543f928c13da4b52606a8654cf8273b 100644 (file)
@@ -64,6 +64,8 @@ try
         str<<base<<"queries" << ' ' << s->queries.load() << " " << now << "\r\n";
         str<<base<<"drops" << ' ' << s->reuseds.load() << " " << now << "\r\n";
         str<<base<<"latency" << ' ' << s->latencyUsec/1000.0 << " " << now << "\r\n";
+        str<<base<<"senderrors" << ' ' << s->sendErrors.load() << " " << now << "\r\n";
+        str<<base<<"outstanding" << ' ' << s->outstanding.load() << " " << now << "\r\n";
       }
       const string msg = str.str();