From 5f13024ce7da58f71a78c7fa8c6e8eab7b3ffd21 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 13 Jun 2024 18:41:27 +0000 Subject: [PATCH 1/3] Update dependency prometheus/haproxy_exporter to v0.15.0 --- data/defaults.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' From 1546b38a6a255fc5005385261b4ee643596c676a Mon Sep 17 00:00:00 2001 From: Christoph Maser Date: Sun, 30 Jun 2024 12:27:16 +0200 Subject: [PATCH 2/3] add deprecation notice for haproxy_exporter --- REFERENCE.md | 2 ++ manifests/haproxy_exporter.pp | 7 +++++++ 2 files changed, 9 insertions(+) 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/manifests/haproxy_exporter.pp b/manifests/haproxy_exporter.pp index 228444ae..18c0bca3 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 remove 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, From 5983972afa3e02e10959288b7bafe17fad6e6733 Mon Sep 17 00:00:00 2001 From: Christoph Maser Date: Sun, 30 Jun 2024 14:41:12 +0200 Subject: [PATCH 3/3] Update manifests/haproxy_exporter.pp Co-authored-by: Tim Meusel --- manifests/haproxy_exporter.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/haproxy_exporter.pp b/manifests/haproxy_exporter.pp index 18c0bca3..2cff8a19 100644 --- a/manifests/haproxy_exporter.pp +++ b/manifests/haproxy_exporter.pp @@ -99,7 +99,7 @@ } deprecation( 'prometheus::haproxy_exporter', - 'haproxy exporter is deprecated and will be remove in the next major release. See https://github.com/prometheus/haproxy_exporter?tab=readme-ov-file#official-prometheus-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 )