Add the resource limits to the metrics

This commit is contained in:
Ingo Oppermann
2023-06-06 15:20:59 +02:00
parent 3adf5fd7d4
commit 3ac7ead20d
9 changed files with 85 additions and 32 deletions

View File

@@ -91,11 +91,9 @@ func NewAPI(config APIConfig) (API, error) {
}))
a.router.Logger.SetOutput(httplog.NewWrapper(a.logger))
swagHandler := echoSwagger.EchoWrapHandler(echoSwagger.InstanceName("ClusterAPI"))
// Swagger API documentation router group
doc := a.router.Group("/v1/swagger/*")
doc.GET("", swagHandler)
doc.GET("", echoSwagger.EchoWrapHandler(echoSwagger.InstanceName("ClusterAPI")))
a.router.POST("/v1/server", a.AddServer)
a.router.DELETE("/v1/server/:id", a.RemoveServer)