From 352d9d03661f8ac1714ce44f54c928efda9b99b2 Mon Sep 17 00:00:00 2001 From: Christoph Maser Date: Sun, 30 Jun 2024 17:18:35 +0200 Subject: [PATCH] deprecate nginx-vts-exporter see https://github.com/sysulq/nginx-vts-exporter/issues/93 --- REFERENCE.md | 2 ++ data/defaults.yaml | 2 +- manifests/nginx_vts_exporter.pp | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/REFERENCE.md b/REFERENCE.md index b9417e6ae..0578a3160 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -7295,6 +7295,8 @@ Default value: `$prometheus::env_file_path` This module manages prometheus nginx_vts_exporter +* **Note** This class is deprecated. + #### Parameters The following parameters are available in the `prometheus::nginx_vts_exporter` class: diff --git a/data/defaults.yaml b/data/defaults.yaml index da7708803..0cb8d25ee 100644 --- a/data/defaults.yaml +++ b/data/defaults.yaml @@ -119,7 +119,7 @@ prometheus::nginx_vts_exporter::package_name: 'nginx-vts-exporter' prometheus::nginx_vts_exporter::service_name: 'nginx-vts-exporter' prometheus::nginx_vts_exporter::user: 'nginx-vts-exporter' # renovate: depName=hnlq715/nginx-vts-exporter -prometheus::nginx_vts_exporter::version: '0.10.8' +prometheus::nginx_vts_exporter::version: '0.10.3' prometheus::process_exporter::download_extension: 'tar.gz' prometheus::process_exporter::download_url_base: 'https://github.com/ncabatoff/process-exporter/releases' prometheus::process_exporter::extra_groups: [] diff --git a/manifests/nginx_vts_exporter.pp b/manifests/nginx_vts_exporter.pp index 3a411255b..177732d66 100644 --- a/manifests/nginx_vts_exporter.pp +++ b/manifests/nginx_vts_exporter.pp @@ -51,6 +51,8 @@ # Optional proxy server, with port number if needed. ie: https://example.com:8080 # @param proxy_type # Optional proxy server type (none|http|https|ftp) +# @note +# This class is deprecated. class prometheus::nginx_vts_exporter ( String $nginx_scrape_uri, String $download_extension, @@ -90,6 +92,12 @@ default => undef, } + deprecation( + 'prometheus::nginx_vts_exporter', + 'nginx_vts_exporter exporter is deprecated and will be removed in the next major release. See https://github.com/sysulq/nginx-vts-exporter/issues/93', + false + ) + $options = "-nginx.scrape_uri=\"${nginx_scrape_uri}\" ${extra_options}" prometheus::daemon { 'nginx-vts-exporter':