diff --git a/site-modules/profile/manifests/jenkins/reverse_proxy.pp b/site-modules/profile/manifests/jenkins/reverse_proxy.pp index 6f306cc3..2b6d7fa5 100644 --- a/site-modules/profile/manifests/jenkins/reverse_proxy.pp +++ b/site-modules/profile/manifests/jenkins/reverse_proxy.pp @@ -1,10 +1,21 @@ class profile::jenkins::reverse_proxy { + $jenkins_vhost_name = lookup('jenkins::vhost::name') ::profile::reverse_proxy {'jenkins': default_proxy_pass_opts => { keywords => ['nocanon'], }, extra_apache_opts => { allow_encoded_slashes => 'nodecode', }, } + + profile::prometheus::export_scrape_config {"jenkins_${jenkins_vhost_name}": + job => "jenkins", + target => "${jenkins_vhost_name}:443", + scheme => "https", + metrics_path => '/prometheus', + labels => { + instance => $jenkins_vhost_name, + }, + } }