From 9c58e96ba0f5aef4be4f57fa4419866a4d2b1263 Mon Sep 17 00:00:00 2001 From: Daniel Czerwonk Date: Fri, 1 Dec 2017 10:04:50 +0100 Subject: [PATCH] added info text when using the old format --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index d081afd..b118fd8 100644 --- a/main.go +++ b/main.go @@ -59,6 +59,11 @@ func printVersion() { func startServer() { log.Infof("Starting bird exporter (Version: %s)\n", version) + + if !*newFormat { + log.Info("INFO: You are using the old metric format. Please consider using the new (more convinient one) by setting -format.new=true.") + } + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte(` Bird Routing Daemon Exporter (Version ` + version + `)