aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/handler.go
diff options
context:
space:
mode:
authorGravatar Zou Nengren <zounengren@cmss.chinamobile.com> 2020-01-03 17:06:37 +0800
committerGravatar Miek Gieben <miek@miek.nl> 2020-01-03 10:06:37 +0100
commit99e7c3dee750f4b80a0724b22acbeef6bf12dd7a (patch)
tree289bebfc9bfa039e81880fcd0605f355b536d582 /plugin/cache/handler.go
parent908508a9bd5cf0b0e41fb63ca97d2f4d492e3505 (diff)
downloadcoredns-99e7c3dee750f4b80a0724b22acbeef6bf12dd7a.tar.gz
coredns-99e7c3dee750f4b80a0724b22acbeef6bf12dd7a.tar.zst
coredns-99e7c3dee750f4b80a0724b22acbeef6bf12dd7a.zip
registry cache_miss logic (#3578)
Signed-off-by: zouyee <zounyee1989@gmail.com>
Diffstat (limited to 'plugin/cache/handler.go')
-rw-r--r--plugin/cache/handler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/cache/handler.go b/plugin/cache/handler.go
index 905a98ef4..2a64f11e4 100644
--- a/plugin/cache/handler.go
+++ b/plugin/cache/handler.go
@@ -114,6 +114,7 @@ func (c *Cache) getIgnoreTTL(now time.Time, state request.Request, server string
}
return i.(*item)
}
+ cacheMisses.WithLabelValues(server).Inc()
return nil
}