aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Zou Nengren <zounengren@cmss.chinamobile.com> 2020-04-04 00:30:06 +0800
committerGravatar GitHub <noreply@github.com> 2020-04-03 09:30:06 -0700
commit4ccd55e95e9f54a0078d7dda76a447879c2f15a3 (patch)
treeaae93e65cb0b82f3a7b815625921691397fd581e /test
parent7bb32dee7de8064a9c7787be1776741209dc9d16 (diff)
downloadcoredns-4ccd55e95e9f54a0078d7dda76a447879c2f15a3.tar.gz
coredns-4ccd55e95e9f54a0078d7dda76a447879c2f15a3.tar.zst
coredns-4ccd55e95e9f54a0078d7dda76a447879c2f15a3.zip
correct metrics name of cache size (#3805)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
Diffstat (limited to 'test')
-rw-r--r--test/metrics_test.go4
-rw-r--r--test/reload_test.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/metrics_test.go b/test/metrics_test.go
index e79370873..6521abc9d 100644
--- a/test/metrics_test.go
+++ b/test/metrics_test.go
@@ -138,7 +138,7 @@ func TestMetricsAuto(t *testing.T) {
// Show that when 2 blocs share the same metric listener (they have a prometheus plugin on the same listening address),
// ALL the metrics of the second bloc in order are declared in prometheus, especially the plugins that are used ONLY in the second bloc
func TestMetricsSeveralBlocs(t *testing.T) {
- cacheSizeMetricName := "coredns_cache_size"
+ cacheSizeMetricName := "coredns_cache_entries"
addrMetrics := "localhost:9155"
corefile := fmt.Sprintf(`
@@ -227,7 +227,7 @@ example.com:0 {
func TestMetricsAvailable(t *testing.T) {
procMetric := "coredns_build_info"
- procCache := "coredns_cache_size"
+ procCache := "coredns_cache_entries"
procCacheMiss := "coredns_cache_misses_total"
procForward := "coredns_dns_request_duration_seconds"
corefileWithMetrics := `
diff --git a/test/reload_test.go b/test/reload_test.go
index f17a85b05..72f0a2dfd 100644
--- a/test/reload_test.go
+++ b/test/reload_test.go
@@ -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 {