It depends where the 'ad', 'dom', 'reg' information comes from.  You can 
embed that information in the target, e.g.

- targets:
    - server1:9117/ad-1/domain-1/emea-1
    - server2:9117/ad-2/domain-2/emea-1

and then use rewriting rules to extract each of the parts in turn into 
separate labels.  But to my eye that's less clear than doing the simple 
thing already suggested.

There's a more compact way of writing YAML if you prefer:

- targets: [server1:9117]
  labels: {ad: ad-1, dom: domain-1, reg: emea-1}

- targets: [server2:9117]
  labels: {ad: ad-2, dom: domain-2, reg: emea-1}

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/fb51e118-9cb7-4424-b485-354588525624%40googlegroups.com.

Reply via email to