Skip to content

Commit

Permalink
Add Prometheus metrics for bb_browser's HTTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSchouten committed Sep 6, 2023
1 parent 8d647cd commit 881fd82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/bb_browser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ func main() {
templates,
bbClientdInstanceNamePatcher,
subrouter)
if err := http.NewServersFromConfigurationAndServe(configuration.HttpServers, router, siblingsGroup); err != nil {
if err := http.NewServersFromConfigurationAndServe(
configuration.HttpServers,
http.NewMetricsHandler(router, "BrowserUI"),
siblingsGroup,
); err != nil {
return util.StatusWrap(err, "Failed to create HTTP servers")
}

Expand Down

0 comments on commit 881fd82

Please sign in to comment.