Nomon/nomad-exporter

Feature: add datacenter and region labels

itatabitovski opened this issue · 2 comments

It would be nice to have datacenter and region labels to the running allocations.

Nomon commented

Good idea, I had no need for these myself as I added them via relabel configs from the __consul_meta_dc info from the prometheus consul discovery.

Yes that is how I solved it for the datacenter, but it doesn't work for a region unless you name your datacenters something like "region-dc".

I will try to make a PR.