Commit fb67f118 authored by Serguei Bezverkhi's avatar Serguei Bezverkhi

Adding metrics support to local volume

Adding metrics support to local volume plugin
parent d368afd8
...@@ -107,6 +107,7 @@ func (plugin *localVolumePlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, _ vo ...@@ -107,6 +107,7 @@ func (plugin *localVolumePlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, _ vo
mounter: plugin.host.GetMounter(), mounter: plugin.host.GetMounter(),
plugin: plugin, plugin: plugin,
globalPath: volumeSource.Path, globalPath: volumeSource.Path,
MetricsProvider: volume.NewMetricsStatFS(volumeSource.Path),
}, },
readOnly: readOnly, readOnly: readOnly,
}, nil }, nil
...@@ -151,8 +152,7 @@ type localVolume struct { ...@@ -151,8 +152,7 @@ type localVolume struct {
// Mounter interface that provides system calls to mount the global path to the pod local path. // Mounter interface that provides system calls to mount the global path to the pod local path.
mounter mount.Interface mounter mount.Interface
plugin *localVolumePlugin plugin *localVolumePlugin
// TODO: add metrics volume.MetricsProvider
volume.MetricsNil
} }
func (l *localVolume) GetPath() string { func (l *localVolume) GetPath() string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment