Skip to content

Commit 942df85

Browse files
committed
fix: metrics path matches IOHK cardano-submit-api
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 24acc22 commit 942df85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/api/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func Start(cfg *config.Config) error {
3838
metrics := ginmetrics.GetMonitor()
3939
// Set metrics router
4040
metrics.Expose(metricsRouter)
41+
// Set metrics path
42+
metrics.SetMetricPath("/")
4143
// Use metrics middleware without exposing path in main app router
4244
metrics.UseWithoutExposingEndpoint(router)
4345
// Start metrics listener

0 commit comments

Comments
 (0)