You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2019. It is now read-only.
Adding feature to allow the hostname of the metrics to be overwritten in the XML configuration file by modifying the ConvertTo-GraphiteMetric function.
Modified Import-XMLConfig function to import the new configuration value, and updated Pester Tests
Added Pester Tests for the the ConvertTo-GraphiteMetric function.
Updated readme.md with new configuration value.
Copy file name to clipboardExpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ More details at [http://www.hodgkins.net.au/mswindows/using-powershell-to-send-m
11
11
* Can collect values by using T-SQL queries against MS SQL databases
12
12
* Converts time to UTC on sending
13
13
* All configuration can be done from a simple XML file
14
+
* Allows you to override the hostname in Windows Performance Counters before sending on to Graphite
14
15
* Reloads the XML configuration file automatically. For example, if more counters are added to the configuration file, the script will notice and start sending metrics for them to Graphite in the next send interval
15
16
* Additional functions are exposed that allow you to send data to Graphite from PowerShell easily. [Here](#functions) is the list of included functions
16
17
* Script can be installed to run as a service
@@ -38,6 +39,7 @@ Configuration Name | Description
38
39
CarbonServer | The server name where Carbon is running. The Carbon daemon is usually running on the Graphite server.
39
40
CarbonServerPort | The port number for Carbon. Its default port number is 2003.
40
41
MetricPath | The path of the metric you want to be sent to the server. If you are using HostedGraphite, put your API key before the rest of the metric path, for example `YOUR-API-KEY.datacenter1.servers`.
42
+
NodeHostName | This allows you to override the hostname of the server before sending the metrics on to Graphite. Default is use `$env:COMPUTERNAME`, which will use the local computer name.
41
43
MetricSendIntervalSeconds | The interval to send metrics to Carbon; I recommend 5 seconds or greater. The more metrics you are collecting the longer it takes to send them to the Graphite server. You can see how long it takes to send the metrics each time the loop runs by using running the `Start-StatsToGraphite` function and having *VerboseOutput* set to *True*.
42
44
SendUsingUDP | Sends metrics via UDP instead of TCP.
0 commit comments