Skip to content

Commit

Permalink
deprecate prometheus::rabbitmq_exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeier committed Dec 31, 2024
1 parent e0ec758 commit 3fa6cfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11023,7 +11023,7 @@ Default value: `undef`

### <a name="prometheus--rabbitmq_exporter"></a>`prometheus::rabbitmq_exporter`

This module manages prometheus rabbitmq_exporter
This class is deprecated and will be removed in a future release.

#### Parameters

Expand Down
8 changes: 8 additions & 0 deletions manifests/rabbitmq_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,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 and will be removed in a future release.
class prometheus::rabbitmq_exporter (
Prometheus::Uri $download_url_base,
Array[String] $extra_groups,
Expand Down Expand Up @@ -109,6 +111,12 @@
Optional[String[1]] $proxy_server = undef,
Optional[Enum['none', 'http', 'https', 'ftp']] $proxy_type = undef,
) inherits prometheus {
deprecation(
'promtheus::rabbitmq_exporter',
'This class is deprecated and will be removed in a future release. See https://github.com/kbudde/rabbitmq_exporter/issues/383 for details',
false
)

if versioncmp($version, '1.0.0') >= 0 {
$extract_path = "/opt/${package_name}-${version}.${os}-${arch}"
$real_download_url = pick($download_url, "${download_url_base}/download/v${version}/${package_name}_${version}_${os}_${arch}.${download_extension}")
Expand Down

0 comments on commit 3fa6cfc

Please sign in to comment.