Skip to content

Commit 5f611e8

Browse files
author
Helen Campbell
committed
Redirect port_metrics_command stdout to /dev/null
1 parent 2e582c5 commit 5f611e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manifests/pe_metric.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
}
6262

6363
$metrics_command = $metrics_server_type ? {
64-
'influxdb' => "${port_metrics_command} --influx-db ${metrics_server_db}",
65-
'graphite' => $port_metrics_command,
66-
default => $port_metrics_command,
64+
'influxdb' => "${port_metrics_command} --influx-db ${metrics_server_db} > /dev/null",
65+
'graphite' => "${port_metrics_command} > /dev/null",
66+
default => "${port_metrics_command} > /dev/null",
6767
}
6868
} else {
6969
$metrics_command = "${metrics_base_command} --no-print"

0 commit comments

Comments
 (0)