diff --git a/ipahealthcheck_exporter.go b/ipahealthcheck_exporter.go index 168329f..64b3031 100644 --- a/ipahealthcheck_exporter.go +++ b/ipahealthcheck_exporter.go @@ -18,6 +18,10 @@ import ( ) var ( + version = "development" // override by goreleaser + commit = "none" // override by goreleaser + date = "none" // override by goreleaser + metricsPath string ipahealthcheckPath string ipahealthcheckLogPath string @@ -267,6 +271,12 @@ func main() { } }) + if date == "none" { + date = time.Now().String() + } + + log.Infof("Running exporter version %s, commit %s, built at %s", version, commit, date) + log.Infof("ipa-healthcheck exporter listening on http://%v:%d\n", address, port) if err := http.ListenAndServe(fmt.Sprintf("%v:%d", address, port), nil); err != nil {