Gerrit has already a parameter to define an identifier for the instances. This could be included in the events generated by the different nodes.
instanceName is currently set in the
gerrit.config. It defaults to the
full hostname if not set in
instanceName is not used to uniquely identify an instance in a cluster.
For example, it is, available to the email templating system.
Using it would couple the presentation logic to something more backend specific as identifying an instance in a cluster. Also, it could not necessarily be relevant for the end users receiving it in their inbox.
Same consideration as in the proposed solution