Skip to content

Commit

Permalink
(puppetlabsgh-73) Append - to the metric command for json2timeseriesdb
Browse files Browse the repository at this point in the history
Prior to this commit, a warning would be presented when shipping metrics
using the json2timeseriesdb streaming. This commit adds a - to the the
command to stop the warning.
  • Loading branch information
Jarret Lavallee committed Dec 21, 2020
1 parent b058216 commit 7f15bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/pe_metric.pp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
fail('When specifying an InfluxDB metrics server, you must specify a metrics server db_name')
}

$conv_metrics_command = "${base_metrics_command} | ${conversion_script_file_path} --netcat ${server_hostname} --convert-to ${server_type}"
$conv_metrics_command = "${base_metrics_command} | ${conversion_script_file_path} --netcat ${server_hostname} --convert-to ${server_type} -"

$full_metrics_command = empty($server_port) ? {
false => "${conv_metrics_command} --port ${server_port}",
Expand Down

0 comments on commit 7f15bde

Please sign in to comment.