Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vijeyash1 committed Mar 8, 2024
1 parent 76d02e2 commit 21c0aa8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions agent/kubviz/k8smetrics_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,13 @@ func main() {
// err = kubescore.RunKubeScore(clientset, js)
// events.LogErr(err)
}

collectAndPublishMetrics()
collectAndPublishMetrics()
collectAndPublishMetrics()
collectAndPublishMetrics()
ticker := time.NewTicker(3 * time.Minute)
defer ticker.Stop()
collectAndPublishMetrics()
for range ticker.C {
collectAndPublishMetrics()
}

if cfg.SchedulerEnable { // Assuming "cfg.Schedule" is a boolean indicating whether to schedule or not.
scheduler := scheduler.InitScheduler(config, js, *cfg, clientset)

Expand Down

0 comments on commit 21c0aa8

Please sign in to comment.