MongoDB replica sets are showing up multiple times in the Global View (GV). This happens across different agents monitoring separate clusters.
All MongoDB clusters are using the same replica set name (e.g., rs0
). Foglight uses this name to identify and group replica sets. When multiple clusters share the same name, Foglight merges their data, causing duplication in the Global View.
To fix this, configure Replica Set Aliases in each MongoDB agent’s properties. This tells Foglight to treat each replica set as unique, even if they share the same internal name.
mongo-agent-dev
, mongo-agent-prod
, mongo-agent-test
).Each agent should only include the replica set(s) it monitors. Do not include aliases for replica sets monitored by other agents.
mongo-agent-dev
:Replica Set Name | Alias |
---|---|
rs0 | rs0-dev-cluster |
mongo-agent-prod
:Replica Set Name | Alias |
---|---|
rs0 | rs0-prod-cluster |
mongo-agent-test
:Replica Set Name | Alias |
---|---|
rs0 | rs0-test-cluster |