зеркало из https://github.com/github/vitess-gh.git
ignore metrics that does not make sense to statsd
Signed-off-by: crowu <y.wu4515@gmail.com>
This commit is contained in:
Родитель
f546dd20c7
Коммит
b5506f7497
|
@ -200,9 +200,9 @@ func (sb StatsBackend) addExpVar(kv expvar.KeyValue) {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log.Warningf("Silently ignore metrics with key %v [%T]", k, kv.Value)
|
||||
}
|
||||
case *stats.StringMapFunc, *stats.Rates, *stats.RatesFunc:
|
||||
// Silently ignore metrics that does not make sense to be exported to statsd
|
||||
default:
|
||||
log.Warningf("Silently ignore metrics with key %v [%T]", k, kv.Value)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче