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

Update dependency prometheus/haproxy_exporter to v0.15.0 #769

Merged
merged 3 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -4627,6 +4627,8 @@ Default value: `undef`

This module manages prometheus haproxy_exporter

* **Note** This class is deprecated.

#### Parameters

The following parameters are available in the `prometheus::haproxy_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 @@ -108,7 +108,7 @@ prometheus::haproxy_exporter::package_name: 'haproxy_exporter'
prometheus::haproxy_exporter::service_name: 'haproxy_exporter'
prometheus::haproxy_exporter::user: 'haproxy-user'
# renovate: depName=prometheus/haproxy_exporter
prometheus::haproxy_exporter::version: '0.11.0'
prometheus::haproxy_exporter::version: '0.15.0'
prometheus::nginx_vts_exporter::nginx_scrape_uri: 'http://localhost/status/format/json'
prometheus::nginx_vts_exporter::download_extension: 'tar.gz'
prometheus::nginx_vts_exporter::download_url_base: 'https://github.com/hnlq715/nginx-vts-exporter/releases'
Expand Down
7 changes: 7 additions & 0 deletions manifests/haproxy_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
# Path of file where the web-config will be saved to
# @param web_config_content
# Unless empty the content of the web-config yaml which will handed over as option to the exporter
# @note
# This class is deprecated.
class prometheus::haproxy_exporter (
Variant[Stdlib::HTTPUrl, Pattern[/unix:(?:\/.+)+/]] $cnf_scrape_uri,
String $download_extension,
Expand Down Expand Up @@ -95,6 +97,11 @@
true => Service[$service_name],
default => undef,
}
deprecation(
'prometheus::haproxy_exporter',
'haproxy exporter is deprecated and will be remove in the next major release. See https://github.com/prometheus/haproxy_exporter?tab=readme-ov-file#official-prometheus-exporter',
TheMeier marked this conversation as resolved.
Show resolved Hide resolved
false
)

$_web_config_ensure = $web_config_content.empty ? {
true => absent,
Expand Down