mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-14 03:41:51 +02:00
Add dummy /metrics endpoint (#327)
This commit is contained in:
@ -23,3 +23,9 @@ func healthcheck(ctx echo.Context) error {
|
||||
"time": time.Now().Format(time.RFC3339),
|
||||
})
|
||||
}
|
||||
|
||||
// metrics is a dummy handler to satisfy the /metrics endpoint (for Prometheus, Openmetrics, etc.)
|
||||
// until we have a proper metrics endpoint
|
||||
func metrics(ctx echo.Context) error {
|
||||
return ctx.String(200, "")
|
||||
}
|
||||
|
Reference in New Issue
Block a user