Today I learned, how Gluster Prometheus Exporter determine the leader node (peer). It simply compares the peers UUIDs alphabetically and elect the peer with the highest UUID as the cluster leader.
We should note that healing and profile metrics can only be scraped from the leader node.