Skip to content

Commit cae01a4

Browse files
Merge pull request #15 from ca-gip/metrics-and-sa
Metrics and Service Account
2 parents 8cb774c + e16ddc4 commit cae01a4

File tree

8 files changed

+1496
-52
lines changed

8 files changed

+1496
-52
lines changed

Version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.1
1+
1.6.0

cmd/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func main() {
6161
}
6262

6363
router := mux.NewRouter()
64+
router.Use(utils.PrometheusMiddleware)
6465
router.NotFoundHandler = http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
6566
w.WriteHeader(http.StatusNotFound)
6667
utils.Log.Warn().Msgf("%d %s %s", http.StatusNotFound, req.Method, req.URL.String())
@@ -84,7 +85,7 @@ func main() {
8485
for {
8586
select {
8687
case t := <-timerKubiRefresh.C:
87-
utils.Log.Info().Msgf("Refreshing Projects at ", t.String())
88+
utils.Log.Info().Msgf("Refreshing Projects at %s", t.String())
8889
services.RefreshK8SResources()
8990
}
9091
}

0 commit comments

Comments
 (0)