From f043abe53689ca08c82d641ef20d5f6b35f534df Mon Sep 17 00:00:00 2001 From: Jon Bidinger Date: Fri, 24 Aug 2018 19:48:23 -0500 Subject: [PATCH] Added msg.cache.count and rrset.cache.count gauges. --- unbound_exporter.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/unbound_exporter.go b/unbound_exporter.go index db2780c..7e52279 100644 --- a/unbound_exporter.go +++ b/unbound_exporter.go @@ -230,6 +230,18 @@ var ( prometheus.GaugeValue, nil, "^total\\.recursion\\.time\\.median$"), + newUnboundMetric( + "msg_cache_count", + "The Number of Messages cached", + prometheus.GaugeValue, + nil, + "^msg\\.cache\\.count$"), + newUnboundMetric( + "rrset_cache_count", + "The Number of rrset cached", + prometheus.GaugeValue, + nil, + "^rrset\\.cache\\.count$"), } )