Metrics

The DeferPanic insights client allows you to track things such as goroutines, garbage collection, and memory usage. By default, metrics are updated every minute.

You can get started with this:

    
package main

import (
	"github.com/deferpanic/deferclient/deferstats"
	"time"
)

func makego() {
	for i := 0; i < 1000; i++ {
		go func() {
			time.Sleep(120 * time.Second)
		}()
	}
}

func main() {
	dfs := deferstats.NewClient("v00L0K6CdKjE4QwX5DL1iiODxovAHUfo")
	go dfs.CaptureStats()

	go makego()

	time.Sleep(120 * time.Second)
}

After the first minute or so you should see activity in your dashboard. Here we can see over 1k goroutines that we created.

Need more help or have questions? Email engineering@ and talk to someone technical!

Get started