Add syncProxyRules prometheus metric

This commit is contained in:
Wojciech Tyczynski
2017-05-16 13:11:58 +02:00
parent e35b1c21a1
commit 45ed99c3a6
4 changed files with 57 additions and 1 deletions

View File

@@ -885,6 +885,7 @@ func (proxier *Proxier) syncProxyRules() {
}
start := time.Now()
defer func() {
SyncProxyRulesLatency.Observe(sinceInMicroseconds(start))
glog.V(4).Infof("syncProxyRules took %v", time.Since(start))
}()
// don't sync rules till we've received services and endpoints