Skip to content

Commit

Permalink
Remove every minute logging of goroutine and query count
Browse files Browse the repository at this point in the history
(this was useful once upon a time; not so much anymore)
  • Loading branch information
abh committed Sep 7, 2015
1 parent 704c12d commit ddbc8ef
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions monitor.go
Expand Up @@ -155,25 +155,7 @@ func initialStatus() string {
return string(message)
}

func logStatus() {
log.Println(initialStatus())

qCounter := metrics.Get("queries").(metrics.Meter)
lastQueryCount := qCounter.Count()

for {
current := qCounter.Count()
newQueries := current - lastQueryCount
lastQueryCount = current

log.Println("goroutines", runtime.NumGoroutine(), "queries", newQueries)

time.Sleep(60 * time.Second)
}
}

func monitor(zones Zones) {
go logStatus()

if len(*flaghttp) == 0 {
return
Expand Down

0 comments on commit ddbc8ef

Please sign in to comment.