Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate nginx-vts-exporter #768

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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