Puppet Class: role::prometheus::labs_project

Defined in:
modules/role/manifests/prometheus/labs_project.pp

Overview



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/role/manifests/prometheus/labs_project.pp', line 9

class role::prometheus::labs_project {
  prometheus::server { 'labs':
    listen_address => '127.0.0.1:9901'
  }

  prometheus::web { 'labs':
    proxy_pass => 'http://127.0.0.1:9901/labs',
  }

  $targets_file = '/srv/prometheus/labs/targets/node_project.yml'

  include ::prometheus::wmcs_scripts

  cron { 'prometheus_labs_project_targets':
    ensure  => present,
    command => "/usr/local/bin/prometheus-labs-targets > ${targets_file}.$$ && mv ${targets_file}.$$ ${targets_file}",
    minute  => '*/10',
    hour    => '*',
    user    => 'prometheus',
  }
}