We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e60e1a commit a7e956dCopy full SHA for a7e956d
cmd/gateway.go
@@ -10,6 +10,7 @@ import (
10
openmfpcontext "github.com/openmfp/golang-commons/context"
11
"github.com/openmfp/golang-commons/sentry"
12
"github.com/openmfp/golang-commons/traces"
13
+ "github.com/prometheus/client_golang/prometheus/promhttp"
14
"github.com/spf13/cobra"
15
ctrl "sigs.k8s.io/controller-runtime"
16
restCfg "sigs.k8s.io/controller-runtime/pkg/client/config"
@@ -85,6 +86,9 @@ var gatewayCmd = &cobra.Command{
85
86
// Set up HTTP handler
87
http.Handle("/", managerInstance)
88
89
+ // Replace the /metrics endpoint handler
90
+ http.Handle("/metrics", promhttp.Handler())
91
+
92
// Start HTTP server with context
93
server := &http.Server{
94
Addr: fmt.Sprintf(":%s", appCfg.Gateway.Port),
0 commit comments