From 7f15bde835157e7c8feace718bb7a9303648c864 Mon Sep 17 00:00:00 2001 From: Jarret Lavallee Date: Mon, 21 Dec 2020 10:06:05 -0700 Subject: [PATCH] (gh-73) Append - to the metric command for json2timeseriesdb 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. --- manifests/pe_metric.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/pe_metric.pp b/manifests/pe_metric.pp index 8cdde88e..40ba9c8e 100644 --- a/manifests/pe_metric.pp +++ b/manifests/pe_metric.pp @@ -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}",