metric exception
This commit is contained in:
@ -155,6 +155,7 @@ func newMetricImpl(mt MetricType, name string, help string, constLabels map[stri
|
|||||||
})
|
})
|
||||||
|
|
||||||
writer = &metric_int64{
|
writer = &metric_int64{
|
||||||
|
valptr: new(int64),
|
||||||
key: key,
|
key: key,
|
||||||
writerChan: mc.writerChan,
|
writerChan: mc.writerChan,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,6 +117,7 @@ func NewHTTPServerWithPort(serveMux *http.ServeMux, port int) *Server {
|
|||||||
addr := fmt.Sprintf(":%d", port)
|
addr := fmt.Sprintf(":%d", port)
|
||||||
serveMux.HandleFunc(MakeHttpHandlerPattern("welcome"), welcomeHandler)
|
serveMux.HandleFunc(MakeHttpHandlerPattern("welcome"), welcomeHandler)
|
||||||
serveMux.HandleFunc(MakeHttpHandlerPattern("lb_health_chceck"), healthCheckHandler)
|
serveMux.HandleFunc(MakeHttpHandlerPattern("lb_health_chceck"), healthCheckHandler)
|
||||||
|
serveMux.HandleFunc(MakeHttpHandlerPattern("lb_health_check"), healthCheckHandler)
|
||||||
|
|
||||||
server := &Server{
|
server := &Server{
|
||||||
httpserver: &http.Server{Addr: addr, Handler: serveMux},
|
httpserver: &http.Server{Addr: addr, Handler: serveMux},
|
||||||
@ -127,6 +128,7 @@ func NewHTTPServerWithPort(serveMux *http.ServeMux, port int) *Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewHTTPServer(serveMux *http.ServeMux) *Server {
|
func NewHTTPServer(serveMux *http.ServeMux) *Server {
|
||||||
|
|
||||||
// 시작시 자동으로 enable됨
|
// 시작시 자동으로 enable됨
|
||||||
if len(*tls) > 0 && *portptr == 80 {
|
if len(*tls) > 0 && *portptr == 80 {
|
||||||
*portptr = 443
|
*portptr = 443
|
||||||
|
|||||||
Reference in New Issue
Block a user