Skip to content

Commit

Permalink
Merge pull request #144 from vijeyash1/main
Browse files Browse the repository at this point in the history
minor fix
  • Loading branch information
vijeyash1 authored Aug 3, 2023
2 parents 006786d + 01b7449 commit 1daf6cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions agent/kubviz/k8smetrics_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var (

func main() {
env := Production

clusterMetricsChan := make(chan error, 1)
var (
wg sync.WaitGroup
config *rest.Config
Expand Down Expand Up @@ -99,7 +99,6 @@ func main() {
kubePreUpgradeChan := make(chan error, 1)
getAllResourceChan := make(chan error, 1)
trivyK8sMetricsChan := make(chan error, 1)
clusterMetricsChan := make(chan error, 1)
kubescoreMetricsChan := make(chan error, 1)
trivyImagescanChan := make(chan error, 1)
RakeesErrChan := make(chan error, 1)
Expand Down Expand Up @@ -162,7 +161,7 @@ func main() {
close(outdatedErrChan)
close(kubePreUpgradeChan)
close(getAllResourceChan)
close(clusterMetricsChan)
// close(clusterMetricsChan)
close(kubescoreMetricsChan)
close(trivyImagescanChan)
close(trivyK8sMetricsChan)
Expand All @@ -181,7 +180,7 @@ func main() {
}
s := gocron.NewScheduler(time.UTC)
s.Every(schedulingInterval).Do(collectAndPublishMetrics) // Run immediately and then at the scheduled interval
s.StartBlocking() // Blocks the main function
s.StartBlocking() // Blocks the main function
}

// publishMetrics publishes stream of events
Expand Down

0 comments on commit 1daf6cb

Please sign in to comment.