add metrics to controller-manager

Signed-off-by: LiHui <andrewli@yunify.com>
This commit is contained in:
LiHui
2020-12-23 09:44:30 +08:00
parent 056bebdec6
commit 611f1c6991
8 changed files with 60 additions and 24 deletions

View File

@@ -20,5 +20,5 @@ func (s *Options) ApplyTo(options *Options) {
}
func (s *Options) AddFlags(fs *pflag.FlagSet, c *Options) {
fs.BoolVar(&s.Enable, "enable-metric", c.Enable, "If true, allow metric. [default=false]")
fs.BoolVar(&s.Enable, "enable-metrics", c.Enable, "If true, allow metrics. [default=false]")
}