Skip to content

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
fix /metrics 404 error
  • Loading branch information
L4puta authored Apr 12, 2024
1 parent 1e97dd8 commit dd248a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func validateFrameworkConfiguration() {
//validate/start prometheus
if config.Prometheus != "" {
go func() {
http.Handle("metrics", promhttp.Handler())
http.Handle("/metrics", promhttp.Handler())
if err := http.ListenAndServe(config.Prometheus, nil); err != nil {
log.Fatalf("could not run prometheus server: %s", err.Error())
}
Expand Down

0 comments on commit dd248a5

Please sign in to comment.