fix comment in custommetrics

pull/6/head
Andrew Seigner 2017-04-13 15:03:36 -07:00
parent ef2edcc94e
commit f13563b73a
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ const (
// Alpha implementation. // Alpha implementation.
// Returns a path to a cAdvisor-specific custom metrics configuration. // Returns a path to a cAdvisor-specific custom metrics configuration.
func GetCAdvisorCustomMetricsDefinitionPath(container *v1.Container) (*string, error) { func GetCAdvisorCustomMetricsDefinitionPath(container *v1.Container) (*string, error) {
// Assuemes that the container has Custom Metrics enabled if it has "/etc/custom-metrics" directory // Assumes that the container has Custom Metrics enabled if it has "/etc/custom-metrics" directory
// mounted as a volume. Custom Metrics definition is expected to be in "definition.json". // mounted as a volume. Custom Metrics definition is expected to be in "definition.json".
if container.VolumeMounts != nil { if container.VolumeMounts != nil {
for _, volumeMount := range container.VolumeMounts { for _, volumeMount := range container.VolumeMounts {