Open Lveltmaat opened 10 months ago
tag
is a puppet metaparameter, see https://www.puppet.com/docs/puppet/6/metaparameter#tag. You simply set a costum tag on all exporter-resources eg like this:
class {'prometheus::node_exporter':
tag => 'mytag',
}
and then set collect_tag
to mytag
on the prometheus::server
that is dedicated to these resources.
Hi guys,
In our datacenter we have two different environments. Each has it's own prometheus server and can only reach it's own clients. We want to use the prometheus::collect_tag for this reason. We haven't been successfull in doing so.
We tried inspecting the code but were not able to find a way to fill the tag field, for example on a client running node exporter.
In the reference I couldn't find a way to fill in a tag.
A small portion of manifests/config.pp:
Are there examples of how the collect tag portion should work?