Add prometheus container level metrics

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-03-21 12:01:19 -07:00
parent 977939850b
commit f36feb2ed4
40 changed files with 4212 additions and 8 deletions

23
vendor/github.com/crosbymichael/cgroups/named.go generated vendored Normal file
View File

@@ -0,0 +1,23 @@
package cgroups
import "path/filepath"
func NewNamed(root string, name Name) *namedController {
return &namedController{
root: root,
name: name,
}
}
type namedController struct {
root string
name Name
}
func (n *namedController) Name() Name {
return n.name
}
func (n *namedController) Path(path string) string {
return filepath.Join(n.root, string(n.name), path)
}