add them as members on the service that graphite makes. then you simply collect the members and know who the peers are. The endpoint IP would be the graphite master.