INNER CODE UNIT · Go
init
ContainerSolutions/k8s-deployment-strategies · app/main.go:73
func init() {
prometheus.MustRegister(inFlightGauge, counter, duration, responseSize)
}
func main() {
flag.Parse()
// logs
log := zerolog.New(os.Stdout).With().
Timestamp().
Str("version", version).
Logger()
// graceful shutdown
quit := make(chan os.Signal, 1)
signal.Notify(quit, syscall.SIGTERM, syscall.SIGINT)
// probes