Skip to content

Commit

Permalink
export apache exporter scrape jobs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
anarcat committed Mar 19, 2019
1 parent c0108c1 commit f3fb94c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/apache_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
String[1] $config_mode = $prometheus::config_mode,
String[1] $arch = $prometheus::real_arch,
Stdlib::Absolutepath $bin_dir = $prometheus::bin_dir,
String[1] $scrape_job_name = 'apache',
) inherits prometheus {

#Please provide the download_url for versions < 0.9.0
Expand Down Expand Up @@ -133,5 +134,8 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9117,
scrape_job_name => $scrape_job_name,
}
}

0 comments on commit f3fb94c

Please sign in to comment.