Note: The Watchdog Windows binary is downloaded along with Traefik binary by running the script
$REPO_ROOT\Traefik\Scripts\Get-TraefikBinary.ps1
.
- Add or uncomment the following lines in your
/Traefik/ApplicationPackageRoot/ApplicationManifest.xml
<ApplicationManifest>
<ServiceManifestImport>
<ServiceManifestRef ServiceManifestName="Watchdog" ServiceManifestVersion="1.0.0" />
<ConfigOverrides />
<Policies>
<RunAsPolicy CodePackageRef="Code" UserRef="AdminUser" EntryPointType="All" />
</Policies>
</ServiceManifestImport>
...
<DefaultServices>
...
<Service Name="Watchdog" ServicePackageActivationMode="ExclusiveProcess">
<StatelessService ServiceTypeName="WatchdogType" InstanceCount="[Traefik_InstanceCount]">
<SingletonPartition />
</StatelessService>
</Service>
...
</DefaultServices>
...
</ApplicationManifest>
- Copy your Application Insights instrumentation key in into the placeholder
__YOURKEYHERE__
in/Treafik/ApplicationPackageRoot/Watchdog/ServiceManifest.xml
<ExeHost>
<Program>traefik-appinsights-watchdog.exe</Program>
<Arguments>--appinsightskey=__YOURKEYHERE__ --watchdogtestserverport=29001 --pollintervalsec=60 --debug=true</Arguments>
<WorkingFolder>CodePackage</WorkingFolder>
<!-- Uncomment to log console output (both stdout and stderr) to one of the
service's working directories. -->
<!-- <ConsoleRedirection FileRetentionCount="5" FileMaxSizeInKb="2048" /> -->
</ExeHost>
- Optional Review, add or adjust any arguments (i.e.: credentials to call Traefik's "/health" endpoint). For full details on the watchdog see it's repository here