diff --git a/exporter.go b/exporter.go index 4f514c3a6..42e805c63 100644 --- a/exporter.go +++ b/exporter.go @@ -4,7 +4,7 @@ package main import ( - //We keep this at the top to ensure it happens first + //Its important that we do these first so that we can register with the windows service control ASAP to avoid timeouts "github.com/prometheus-community/windows_exporter/initiate" "github.com/prometheus-community/windows_exporter/log" diff --git a/initiate/initiate.go b/initiate/initiate.go index 7da31c0d2..9b4c08e8a 100644 --- a/initiate/initiate.go +++ b/initiate/initiate.go @@ -1,3 +1,4 @@ +//This package allows us to initiate Time Sensitive components (Like registering the windows service) as early as possible in the startup process package initiate import (