Initial ORION Telemetry service
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
)
|
||||
|
||||
func NewRouter() *gin.Engine {
|
||||
r := gin.Default()
|
||||
|
||||
r.GET("/health", Health)
|
||||
r.GET("/version", Version)
|
||||
r.GET("/metrics", gin.WrapH(promhttp.Handler()))
|
||||
|
||||
return r
|
||||
}
|
||||
Reference in New Issue
Block a user