agent interface /v1/push compatible with open-falcon

This commit is contained in:
UlricQin 2020-07-11 10:42:34 +08:00
parent 080d921791
commit b6169ac706
1 changed files with 12 additions and 0 deletions

View File

@ -18,5 +18,17 @@ func Config(r *gin.Engine) {
sys.POST("/push", pushData)
}
// compatible with open-falcon
v1 := r.Group("/v1")
{
v1.GET("/ping", ping)
v1.GET("/pid", pid)
v1.GET("/addr", addr)
v1.GET("/stra", getStrategy)
v1.GET("/cached", getLogCached)
v1.POST("/push", pushData)
}
pprof.Register(r, "/api/collector/debug/pprof")
}