From b56fb675869f0668264fe5fb744abe8ac06749f8 Mon Sep 17 00:00:00 2001 From: Kristian Jensen Date: Thu, 23 Apr 2015 10:57:41 +0200 Subject: [PATCH] Update Start-StatsToGraphite.ps1 --- Functions/Start-StatsToGraphite.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Functions/Start-StatsToGraphite.ps1 b/Functions/Start-StatsToGraphite.ps1 index 97b8799..bbedf98 100644 --- a/Functions/Start-StatsToGraphite.ps1 +++ b/Functions/Start-StatsToGraphite.ps1 @@ -138,6 +138,9 @@ Function Start-StatsToGraphite # Check if there are filters or not if ([string]::IsNullOrWhiteSpace($Config.Filters) -or $sample.Path -notmatch [regex]$Config.Filters) { + # Remove "dot" from the original sample path + $sample.path = $sample.path.replace(".","-") + # Run the sample path through the ConvertTo-GraphiteMetric function $cleanNameOfSample = ConvertTo-GraphiteMetric -MetricToClean $sample.Path -HostName $Config.NodeHostName -MetricReplacementHash $Config.MetricReplace @@ -236,4 +239,4 @@ Function Start-StatsToGraphite Write-Output $VerboseOutPut } } -} \ No newline at end of file +}