Skip to content

Commit

Permalink
[MONGO-2724] Correctly whitelist metrics for mongo (#300)
Browse files Browse the repository at this point in the history
Co-authored-by: Govind Srinivasaraghavan <[email protected]>
  • Loading branch information
dragon9786 and dragon9786 authored May 9, 2023
1 parent 4bcc0f8 commit 949fd41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/do-agent/aggregation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}
2 changes: 1 addition & 1 deletion cmd/do-agent/whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 949fd41

Please sign in to comment.