Understand MongoDB topology labels in metrics
mainThe exporter automatically attaches topology labels to all exported metrics to provide context about the MongoDB architecture:
cl_role: The cluster role:mongos: For mongos instances.shardsvr: For regular instances (primary/secondary) or arbiters.- (empty string): For standalone instances.
cl_id: The Cluster ID.rs_nm: The ReplicaSet name.rs_state: The ReplicaSet state (integer fromgetDiagnosticData() -> replSetGetStatus.myState).