Open ghost opened 3 years ago
+1 for this being properly documented
For anyone who needs a solution:
node /^prometheus\d+-lon.core.example.net$/ {
class { 'prometheus::server':
version => '2.4.3',
global_config => {
'external_labels' => {
'monitor' => 'cluster',
'prometheus_replica' => $trusted['hostname']
},
},
scrape_configs => [
{
'job_name' => 'linux_dmz_vm',
'scrape_interval' => '10s',
'scrape_timeout' => '10s',
'file_sd_configs' => [
{ 'files' => [ '/etc/prometheus/linux_dmz_vm.yaml' ], }
],
},
],
}
Hi,
I have a docker instance of Prometheus and I am trying to recreate the config in Puppet. I am having difficulty understanding and implementing the file_sd_configs parameter. how can I define the following for a Prometheus node:
the above is what I currently use in my docker instance when creating those files manually under /etc/prometheus/file_sd_configs they are purged/removed on the next Puppet run
Unfortunately what I am trying to do is not documented