correct metrics name of cache size (#3805)

Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
This commit is contained in:
Zou Nengren 2020-04-04 00:30:06 +08:00 committed by GitHub
parent 7bb32dee7d
commit 4ccd55e95e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 7 deletions

View file

@ -209,7 +209,7 @@ func TestMetricsAvailableAfterReload(t *testing.T) {
// that is not used in another test
promAddress := "127.0.0.1:53186"
procMetric := "coredns_build_info"
procCache := "coredns_cache_size"
procCache := "coredns_cache_entries"
procForward := "coredns_dns_request_duration_seconds"
corefileWithMetrics := `
.:0 {
@ -263,7 +263,7 @@ func TestMetricsAvailableAfterReloadAndFailedReload(t *testing.T) {
// that is not used in another test
promAddress := "127.0.0.1:53187"
procMetric := "coredns_build_info"
procCache := "coredns_cache_size"
procCache := "coredns_cache_entries"
procForward := "coredns_dns_request_duration_seconds"
corefileWithMetrics := `
.:0 {