Skip to content

Commit

Permalink
fix(application): use controller default port set metrics (tkestack#1972
Browse files Browse the repository at this point in the history
)

Co-authored-by: xdonggao <xdonggao@tencent.com>
  • Loading branch information
GaoXiaodong and xdonggao committed Sep 14, 2022
1 parent 4269e0e commit 0e6af17
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cmd/tke-application-controller/controller-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ package main

import (
"math/rand"
"net/http"
"os"
"runtime"
"time"

"github.com/prometheus/client_golang/prometheus/promhttp"
"k8s.io/klog"
"tkestack.io/tke/cmd/tke-application-controller/app"
)

Expand All @@ -36,13 +33,5 @@ func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
}

mux := http.NewServeMux()
mux.Handle("/metrics", promhttp.Handler())
go func() {
if err := http.ListenAndServe(":9464", mux); err != nil {
klog.Fatal(err)
}
}()

app.NewApp("tke-application-controller").Run()
}

0 comments on commit 0e6af17

Please sign in to comment.