Closed jinq0123 closed 6 years ago
We should set the port before log.
logrus.Infof("Prometheus metrics at :9000/metrics") port := "9000" if p := os.Getenv("PROMETHEUS_PORT"); p != "" { port = p }
Hi @jinq0123, I've just released v2 which allows you set this via a cmd flag!
https://github.com/lileio/lile/blob/master/cmd.go#L12
We should set the port before log.