Skip to content

Commit

Permalink
feat: metrics endpoint in the main http handler (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored Feb 7, 2025
1 parent a303f23 commit f0b9c1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ func Start(
// Healthcheck
mainMux.HandleFunc("/healthcheck", handleHealthcheck)

// Prometheus endpoint
mainMux.Handle("/metrics", promhttp.Handler())

// Swagger endpoint
mainMux.HandleFunc("/swagger/", httpSwagger.WrapHandler)

Expand Down

0 comments on commit f0b9c1a

Please sign in to comment.