When MongoDB objects (servers, replica sets, clusters) switch ownership between agents or show incorrect relationships, Foglight is receiving overlapping monitoring data.
This can cause:
Foglight merges MongoDB topology when:
This creates duplicate identities, merged objects, ownership churn, and incorrect alarms.
A single MongoDB cluster, replica set, or standalone mongod server must be monitored by one Foglight agent only.
<host>:<port>
If two different clusters use the same replica set name, Foglight will merge them unless aliases are defined.
In the agent properties, use the Replica Set Aliases list, by clicking the Edit button. This list contains a mapping from actual replica set names to aliases. This alias map is required to prevent collisions in collected data between different replica sets with the same name. Ideally, each replica set in an environment should be set up with a unique name.a shared list can be used among all agents or the list can be cloned with a different list used per agent. The default list name is ReplSetAliasesList.
Replica Set Aliases:
actualName = aliasName
Examples:
rsc = rsc_clusterA
rsc = rsc_clusterB
configrs = config_clusterA
configrs = config_clusterB
After entering the Replica Set and Alias in each row, clickt he Save button to store changes. The alias ensures Foglight treats each replica set as unique, even when MongoDB uses identical naming. This avoids merged topology, churn, and incorrect alarms.
Steps:
Delete MongoDB topology objects that are no longer being monitored.
0 (to find all objects)After cleanup, restart MongoDB agents one at a time to rebuild clean topology.