code: def _publish_replset(self, data, base_prefix):
          
          prefix = base_prefix + ['replset']
          self._publish_dict_with_prefix(data, prefix)
          total_nodes = len(data['members'])
          healthy_nodes = reduce(lambda value, node: value + node['health'],
                                 data['members'], 0)
  
          self._publish_dict_with_prefix({
              'healthy_nodes': healthy_nodes,
              'total_nodes': total_nodes
          }, prefix)
          for node in data['members']:
              replset_node_name = node[self.config['replset_node_name']]
              node_name = str(replset_node_name.split('.')[0])
              self._publish_dict_with_prefix(node, prefix + ['node', node_name])
docs: Given a response to replSetGetStatus, publishes all numeric values
              of the instance, aggregate stats of healthy nodes vs total nodes,
              and the observed statuses of all nodes in the replica set.