Skip to content

Commit

Permalink
Fix metrics for multiple entry points (traefik#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
matevzmihalic authored and jangie committed Feb 23, 2017
1 parent 6647b6c commit 08f3a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (server *Server) startHTTPServers() {
serverMiddlewares := []negroni.Handler{server.loggerMiddleware, metrics}
if server.globalConfiguration.Web != nil && server.globalConfiguration.Web.Metrics != nil {
if server.globalConfiguration.Web.Metrics.Prometheus != nil {
metricsMiddleware := middlewares.NewMetricsWrapper(middlewares.NewPrometheus("Global", server.globalConfiguration.Web.Metrics.Prometheus))
metricsMiddleware := middlewares.NewMetricsWrapper(middlewares.NewPrometheus(newServerEntryPointName, server.globalConfiguration.Web.Metrics.Prometheus))
serverMiddlewares = append(serverMiddlewares, metricsMiddleware)
}
}
Expand Down

0 comments on commit 08f3a05

Please sign in to comment.