From 949fd411398f7af9acda35f9489a5294d9874e26 Mon Sep 17 00:00:00 2001 From: Govind <6620816+dragon9786@users.noreply.github.com> Date: Tue, 9 May 2023 15:27:10 -0400 Subject: [PATCH] [MONGO-2724] Correctly whitelist metrics for mongo (#300) Co-authored-by: Govind Srinivasaraghavan --- cmd/do-agent/aggregation.go | 2 +- cmd/do-agent/whitelist.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/do-agent/aggregation.go b/cmd/do-agent/aggregation.go index 8488b7c3..b7d9a790 100644 --- a/cmd/do-agent/aggregation.go +++ b/cmd/do-agent/aggregation.go @@ -58,5 +58,5 @@ var k8sAggregationSpec = map[string][]string{ } var mongoAggregationSpec = map[string][]string{ - "mongodb_data_usage_percentage": {"cluster_uuid"}, + "mongoagent_data_usage_percentage": {"cluster_uuid"}, } diff --git a/cmd/do-agent/whitelist.go b/cmd/do-agent/whitelist.go index 0367db6c..f15e30b7 100644 --- a/cmd/do-agent/whitelist.go +++ b/cmd/do-agent/whitelist.go @@ -31,7 +31,7 @@ var dbaasWhitelist = map[string]bool{ "postgresql_pg_stat_database_xact_rollback": true, "postgresql_database_size_database_size": true, - "mongodb_data_usage_percentage": true, + "mongoagent_data_usage_percentage": true, "mysql_threads_created": true, "mysql_threads_connected": true,