L.7.7 Optional: install sonar-perfmon exporter
If you use a different path, adjust it accordingly in the following steps.
sc.exe create sonard binpath= c:\sonar\out\Sonard.exe start= auto obj= "NT AUTHORITY\LocalService" depend= "WinRM"
sc.exe sidtype sonard unrestricted
icacls.exe C:\Sonar /grant "NT Service\sonard:(OI)(CI)(M)"
Add-LocalGroupMember -Group "Remote Management Users" -Member "nt service\sonard"
net localgroup "Remote Management Users" "NT Service\sonard" /add
Do not use port 5000, as this is already used by the HealthMonitor service.
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="Sonar" type="Infragravity.Sonar.SonarConfigurationSection, Sonar"/>
</configSections>
<appSettings>
<add key="ConfigPath" value="c:\Sonar\sonard.config"/>
<add key="RuntimeType" value="Service"/>
<add key="LogLevel" value="Information"/>
<add key="LogPath" value="c:\Sonar\sonar.log"/>
<add key="ExporterPort" value="5001"/>
<add key="ExporterCacheMilliseconds" value="60000"/>
<add key="ExporterEnabled" value="true"/>
<appSettings>
</configuration>
netsh advfirewall firewall add rule name="sonard" dir=in action=allow protocol=TCP localport=5001 remoteip=<ip-monitoring>
start-service sonard