]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Declare ring-size metrics as gauges 9182/head
authorMischan Toosarani-Hausberger <migosch@gmail.com>
Fri, 5 Jun 2020 21:17:21 +0000 (23:17 +0200)
committerMischan Toosarani-Hausberger <migosch@gmail.com>
Fri, 5 Jun 2020 21:28:18 +0000 (23:28 +0200)
commit13e6a268b4bd833426d1079d8bf187e51f8b599d
treea93914e168fd64ce714b978248281ed3ae6db5db
parent32a64e3743896b8e48e6d65779fee4bcf159ecc8
auth: Declare ring-size metrics as gauges

ring-buffer size metrics are affected in three ways:

* incremented and saturated as items are added
* set to zero, when the ring-buffer is reset
* decremented when the ring-buffer is resized to a smaller capacity
  that cannot hold the number of items currently stored

The latter qualifies ring-buffer size metrics as gauges.
docs/http-api/index.rst
pdns/statbag.cc