提交 b6169ac7 编写于 作者: U UlricQin

agent interface /v1/push compatible with open-falcon

上级 080d9217
......@@ -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")
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册