measurement-factory / dnstop

Stay on top of your DNS traffic
BSD 3-Clause "New" or "Revised" License
94 stars 15 forks source link

Add tracking of delta between two reports #3

Open rijswijk opened 4 years ago

rijswijk commented 4 years ago

This PR adds tracking of the delta for counters between two reports. Effectively, this adds a queries-per-second indication including a rolling average and maximum qps rate, which may be useful to check excessive queries towards upstream servers.

The code is somewhat unpolished, so feel free to comment and request changes if you think this is a useful feature.

rijswijk commented 4 years ago

And I just did some testing, it needs some polishing, but maybe you can give it a try first to see if the polishing is useful (counters for delta should reset, for example, on a switch of view, and they should be turned off for the types, opcodes and rcodes views)