add Metric
This commit is contained in:
@@ -24,6 +24,7 @@ func StartApiService() {
|
||||
|
||||
engine.GET("/", HandleIp)
|
||||
engine.GET("/json", HandleJson)
|
||||
engine.GET("/metrics", HandleMetrics)
|
||||
|
||||
port := os.Getenv(key.EnvApiPort)
|
||||
if len(port) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user