PLT-4357 adding performance monitoring (#4622)
* WIP * WIP * Adding metrics collection * updating vendor packages * Adding metrics to config * Adding admin console page for perf monitoring * Updating glide * switching to tylerb/graceful
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
e033dcce8e
Коммит
7961599b2e
14
vendor/github.com/prometheus/procfs/stat_test.go
сгенерированный
поставляемый
Обычный файл
14
vendor/github.com/prometheus/procfs/stat_test.go
сгенерированный
поставляемый
Обычный файл
@@ -0,0 +1,14 @@
|
||||
package procfs
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestStat(t *testing.T) {
|
||||
s, err := FS("fixtures").NewStat()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if want, have := int64(1418183276), s.BootTime; want != have {
|
||||
t.Errorf("want boot time %d, have %d", want, have)
|
||||
}
|
||||
}
|
||||
Ссылка в новой задаче
Block a user