add vendoring with go dep

This commit is contained in:
Adrian Todorov
2017-10-25 20:52:40 +00:00
parent 704f4d20d1
commit a59409f16b
1627 changed files with 489673 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package monitor
import (
"runtime"
"github.com/influxdata/influxdb/monitor/diagnostics"
)
// goRuntime captures Go runtime diagnostics.
type goRuntime struct{}
func (g *goRuntime) Diagnostics() (*diagnostics.Diagnostics, error) {
d := map[string]interface{}{
"GOARCH": runtime.GOARCH,
"GOOS": runtime.GOOS,
"GOMAXPROCS": runtime.GOMAXPROCS(-1),
"version": runtime.Version(),
}
return diagnostics.RowFromMap(d), nil
}