Defined Type: prometheus::pint::source
- Defined in:
- modules/prometheus/manifests/pint/source.pp
Overview
Add a pint Prometheus source to enable runtime checking of alerting and recording rules.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'modules/prometheus/manifests/pint/source.pp', line 5
define prometheus::pint::source (
Stdlib::Port $port,
Wmflib::Ensure $ensure = 'present',
String $instance = $title,
String $url_path = $instance,
Boolean $all_alerts = false,
) {
include prometheus::pint
file { "/etc/prometheus/pint.hcl.d/${title}.hcl":
ensure => $ensure,
content => template('prometheus/pint/source.hcl.erb'),
mode => '0444',
notify => Exec['assemble pint.hcl'],
}
}
|