Skip to content

Commit

Permalink
deprecate nginx-vts-exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeier committed Jul 11, 2024
1 parent ebfebdd commit 352d9d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion data/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
Expand Down
8 changes: 8 additions & 0 deletions manifests/nginx_vts_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 352d9d0

Please sign in to comment.