Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Update Start-StatsToGraphite.ps1 #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Functions/Start-StatsToGraphite.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -236,4 +239,4 @@ Function Start-StatsToGraphite
Write-Output $VerboseOutPut
}
}
}
}