add Metric
All checks were successful
Build Docker Image / build (arm64) (push) Successful in 54s
Build Docker Image / build (amd64) (push) Successful in 2m13s
Build Docker Image / amend-manifest (push) Successful in 5s

This commit is contained in:
thuanle
2024-11-07 09:08:19 +07:00
parent b0ac68cbdb
commit 108458682e
5 changed files with 91 additions and 1 deletions

View File

@@ -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 {