public static Map<String, String> commonTags() {
    final Map<String, String> commonTags = new HashMap<>();
    put(commonTags, "nf.app", Env.app());
    put(commonTags, "nf.cluster", Env.cluster());
    put(commonTags, "nf.asg", Env.asg());
    put(commonTags, "nf.stack", Env.stack());
    put(commonTags, "nf.zone", Env.zone());
    put(commonTags, "nf.vmtype", Env.vmtype());
    put(commonTags, "nf.node", Env.instanceId());
    put(commonTags, "nf.region", Env.region());
    put(commonTags, "nf.account", Env.accountId());
    put(commonTags, "nf.task", Env.task());
    put(commonTags, "nf.job", Env.job());
    return commonTags;
  }
public static Map < String , String > commonTags ( ) { final Map < String , String > commonTags = new HashMap < > ( ) ; put ( commonTags , "nf.app" , Env . app ( ) ) ; put ( commonTags , "nf.cluster" , Env . cluster ( ) ) ; put ( commonTags , "nf.asg" , Env . asg ( ) ) ; put ( commonTags , "nf.stack" , Env . stack ( ) ) ; put ( commonTags , "nf.zone" , Env . zone ( ) ) ; put ( commonTags , "nf.vmtype" , Env . vmtype ( ) ) ; put ( commonTags , "nf.node" , Env . instanceId ( ) ) ; put ( commonTags , "nf.region" , Env . region ( ) ) ; put ( commonTags , "nf.account" , Env . accountId ( ) ) ; put ( commonTags , "nf.task" , Env . task ( ) ) ; put ( commonTags , "nf.job" , Env . job ( ) ) ; return commonTags ; }
Infrastructure tags that are common across all metrics. Used for deduplication
and for providing a scope for the metrics produced.