Skip to content

Commit

Permalink
Log stats before sites
Browse files Browse the repository at this point in the history
  • Loading branch information
DRuggeri committed Apr 5, 2020
1 parent 718ba71 commit 4173fe4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bind_query_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,18 @@ func main() {
*/
bogusChan := make(chan string)

fmt.Println("Sites")
sitesCollector := collectors.NewSitesCollector(*metricsNamespace, &bogusChan, *bindQueryIncludeFile, *bindQueryExcludeFile)
fmt.Println("Stats")
statsCollector := collectors.NewStatsCollector(*metricsNamespace, &bogusChan)
out = make(chan *prometheus.Desc)
go eatOutput(out)
sitesCollector.Describe(out)
statsCollector.Describe(out)
close(out)

fmt.Println("Stats")
statsCollector := collectors.NewStatsCollector(*metricsNamespace, &bogusChan)
fmt.Println("Sites")
sitesCollector := collectors.NewSitesCollector(*metricsNamespace, &bogusChan, *bindQueryIncludeFile, *bindQueryExcludeFile)
out = make(chan *prometheus.Desc)
go eatOutput(out)
statsCollector.Describe(out)
sitesCollector.Describe(out)
close(out)

os.Exit(0)
Expand Down

0 comments on commit 4173fe4

Please sign in to comment.