diff --git a/REFERENCE.md b/REFERENCE.md index 3c670db3..4f27415d 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -4627,6 +4627,8 @@ Default value: `undef` This module manages prometheus haproxy_exporter +* **Note** This class is deprecated. + #### Parameters The following parameters are available in the `prometheus::haproxy_exporter` class: diff --git a/data/defaults.yaml b/data/defaults.yaml index 39c29e75..0918741f 100644 --- a/data/defaults.yaml +++ b/data/defaults.yaml @@ -108,7 +108,7 @@ prometheus::haproxy_exporter::package_name: 'haproxy_exporter' prometheus::haproxy_exporter::service_name: 'haproxy_exporter' prometheus::haproxy_exporter::user: 'haproxy-user' # renovate: depName=prometheus/haproxy_exporter -prometheus::haproxy_exporter::version: '0.11.0' +prometheus::haproxy_exporter::version: '0.15.0' prometheus::nginx_vts_exporter::nginx_scrape_uri: 'http://localhost/status/format/json' prometheus::nginx_vts_exporter::download_extension: 'tar.gz' prometheus::nginx_vts_exporter::download_url_base: 'https://github.com/hnlq715/nginx-vts-exporter/releases' diff --git a/manifests/haproxy_exporter.pp b/manifests/haproxy_exporter.pp index 228444ae..2cff8a19 100644 --- a/manifests/haproxy_exporter.pp +++ b/manifests/haproxy_exporter.pp @@ -55,6 +55,8 @@ # Path of file where the web-config will be saved to # @param web_config_content # Unless empty the content of the web-config yaml which will handed over as option to the exporter +# @note +# This class is deprecated. class prometheus::haproxy_exporter ( Variant[Stdlib::HTTPUrl, Pattern[/unix:(?:\/.+)+/]] $cnf_scrape_uri, String $download_extension, @@ -95,6 +97,11 @@ true => Service[$service_name], default => undef, } + deprecation( + 'prometheus::haproxy_exporter', + 'haproxy exporter is deprecated and will be removed in the next major release. See https://github.com/prometheus/haproxy_exporter?tab=readme-ov-file#official-prometheus-exporter', + false + ) $_web_config_ensure = $web_config_content.empty ? { true => absent,