File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11
11
Array[Hash] $additional_metrics = [],
12
12
Boolean $ssl = true ,
13
13
Optional[Puppet_metrics_collector::Metrics_server] $metrics_server_info = undef ,
14
+ Optional[String] $override_metrics_command ,
14
15
) {
15
16
16
17
$metrics_output_dir = " ${output_dir} /${metrics_type} "
53
54
fail( ' When using an influxdb server you must provide the db_name to store metrics in' )
54
55
}
55
56
56
- $local_metrics_command = " ${metrics_base_command} | ${conversion_script_file_name} --netcat ${metrics_server_hostname} --convert-to ${metrics_server_type} "
57
+ if empty($override_metrics_command ) {
58
+ $local_metrics_command = " ${metrics_base_command} | ${conversion_script_file_name} --netcat ${metrics_server_hostname} --convert-to ${metrics_server_type} "
59
+ } else {
60
+ $local_metrics_command = " ${override_metrics_command} | ${conversion_script_file_name} --netcat ${metrics_server_hostname} --convert-to ${metrics_server_type} "
61
+ }
57
62
58
63
$port_metrics_command = empty($metrics_server_port ) ? {
59
64
false => " ${local_metrics_command} --port ${metrics_server_port} " ,
You can’t perform that action at this time.
0 commit comments