Skip to content

Commit

Permalink
(#780) puppetserver: Disable http-client metrics
Browse files Browse the repository at this point in the history
This parameter only enables/disables the *http-client* metrics within
puppetserver. It's disabled by default in the Puppet Inc. config file.
  • Loading branch information
bastelfreak committed Mar 29, 2021
1 parent 39fe8fc commit 44a0400
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@
#
# $server_puppetserver_jruby9k:: For Puppetserver 5, use JRuby 9k? Defaults to false
#
# $server_puppetserver_metrics:: Enable metrics (Puppetserver 5.x only)
# Defaults to true on Puppetserver 5.x and to false on Puppetserver 2.x
# $server_puppetserver_metrics:: Enable puppetserver http-client metrics
# Defaults to false because that's the Puppet Inc. default behaviour.
#
# $server_puppetserver_profiler:: Enable JRuby profiling.
# Defaults to false because that's the Puppet Inc. default behaviour.
Expand Down Expand Up @@ -709,7 +709,7 @@
Boolean $server_allow_header_cert_info = $puppet::params::server_allow_header_cert_info,
Integer[0] $server_web_idle_timeout = $puppet::params::server_web_idle_timeout,
Boolean $server_puppetserver_jruby9k = $puppet::params::server_puppetserver_jruby9k,
Optional[Boolean] $server_puppetserver_metrics = $puppet::params::server_puppetserver_metrics,
Boolean $server_puppetserver_metrics = false,
Boolean $server_puppetserver_profiler = false,
Boolean $server_metrics_jmx_enable = $puppet::params::server_metrics_jmx_enable,
Boolean $server_metrics_graphite_enable = $puppet::params::server_metrics_graphite_enable,
Expand Down
9 changes: 3 additions & 6 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@
#
# $puppetserver_jruby9k:: For Puppetserver 5, use JRuby 9k? Defaults to false
#
# $puppetserver_metrics:: Enable metrics (Puppetserver 5.x only) and JRuby profiling?
# Defaults to true on Puppetserver 5.x and to false on Puppetserver 2.x
# $puppetserver_metrics:: Enable puppetserver http-client metrics
# Defaults to false because that's the Puppet Inc. default behaviour.
#
# $puppetserver_profiler:: Enable JRuby profiling.
# Defaults to false because that's the Puppet Inc. default behaviour.#
# Defaults to false because that's the Puppet Inc. default behaviour.
#
# $metrics_jmx_enable:: Enable or disable JMX metrics reporter. Defaults to true
#
Expand Down Expand Up @@ -485,9 +485,6 @@
$real_puppetserver_version = '5.3.6'
}

# Prefer the user setting,otherwise disable for Puppetserver 2.x, enabled for 5.x
$real_puppetserver_metrics = pick($puppetserver_metrics, true)

if $jvm_extra_args {
$real_jvm_extra_args = $jvm_extra_args
} else {
Expand Down
2 changes: 1 addition & 1 deletion manifests/server/puppetserver.pp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
$server_check_for_updates = $puppet::server::check_for_updates,
$server_environment_class_cache_enabled = $puppet::server::environment_class_cache_enabled,
$server_jruby9k = $puppet::server::puppetserver_jruby9k,
$server_metrics = $puppet::server::real_puppetserver_metrics,
$server_metrics = $puppet::server::puppetserver_metrics,
$server_profiler = $puppet::server::puppetserver_profiler,
$metrics_jmx_enable = $puppet::server::metrics_jmx_enable,
$metrics_graphite_enable = $puppet::server::metrics_graphite_enable,
Expand Down

0 comments on commit 44a0400

Please sign in to comment.