Skip to content

Commit

Permalink
Merge pull request #768 from voxpupuli/renovate/hnlq715-nginx-vts-exp…
Browse files Browse the repository at this point in the history
…orter-0.x

deprecate nginx-vts-exporter
  • Loading branch information
TheMeier authored Jul 11, 2024
2 parents efcde35 + bfbfd51 commit 9eda2bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 9eda2bd

Please sign in to comment.