mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
correct metrics name of cache size (#3805)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
This commit is contained in:
@@ -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 := `
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user