Added cookie and max collision metrics (#61)
* Added metrics for cookies. * Added metrics for cache max_collisons.
This commit is contained in:
parent
2faff03ab6
commit
ed237708aa
|
@ -80,6 +80,24 @@ var (
|
|||
prometheus.CounterValue,
|
||||
[]string{"thread"},
|
||||
"^thread(\\d+)\\.num\\.cachemiss$"),
|
||||
newUnboundMetric(
|
||||
"queries_cookie_client_total",
|
||||
"Total number of queries with a client cookie.",
|
||||
prometheus.CounterValue,
|
||||
[]string{"thread"},
|
||||
"^thread(\\d+)\\.num\\.queries_cookie_client$"),
|
||||
newUnboundMetric(
|
||||
"queries_cookie_invalid_total",
|
||||
"Total number of queries with a invalid cookie.",
|
||||
prometheus.CounterValue,
|
||||
[]string{"thread"},
|
||||
"^thread(\\d+)\\.num\\.queries_invalid_client$"),
|
||||
newUnboundMetric(
|
||||
"queries_cookie_valid_total",
|
||||
"Total number of queries with a valid cookie.",
|
||||
prometheus.CounterValue,
|
||||
[]string{"thread"},
|
||||
"^thread(\\d+)\\.num\\.queries_cookie_valid$"),
|
||||
newUnboundMetric(
|
||||
"memory_caches_bytes",
|
||||
"Memory in bytes in use by caches.",
|
||||
|
@ -236,6 +254,12 @@ var (
|
|||
prometheus.CounterValue,
|
||||
nil,
|
||||
"^num\\.rrset\\.bogus$"),
|
||||
newUnboundMetric(
|
||||
"rrset_cache_max_collisions_total",
|
||||
"Total number of rrset cache hashtable collisions.",
|
||||
prometheus.CounterValue,
|
||||
nil,
|
||||
"^rrset\\.cache\\.max_collisions$"),
|
||||
newUnboundMetric(
|
||||
"time_elapsed_seconds",
|
||||
"Time since last statistics printout in seconds.",
|
||||
|
@ -284,6 +308,12 @@ var (
|
|||
prometheus.GaugeValue,
|
||||
nil,
|
||||
"^msg\\.cache\\.count$"),
|
||||
newUnboundMetric(
|
||||
"msg_cache_max_collisions_total",
|
||||
"Total number of msg cache hashtable collisions.",
|
||||
prometheus.CounterValue,
|
||||
nil,
|
||||
"^msg\\.cache\\.max_collisions$"),
|
||||
newUnboundMetric(
|
||||
"rrset_cache_count",
|
||||
"The Number of rrset cached",
|
||||
|
|
Loading…
Reference in New Issue