Always collect metrics when --metrics-per-host=false
This commit is contained in:
parent
251f48b120
commit
3ee5161cca
2 changed files with 8 additions and 2 deletions
|
|
@ -221,8 +221,8 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
|
|||
}
|
||||
|
||||
for _, stats := range statsBatch {
|
||||
if !sc.hosts.Has(stats.Host) {
|
||||
klog.V(3).Infof("skiping metric for host %v that is not being served", stats.Host)
|
||||
if sc.metricsPerHost && !sc.hosts.Has(stats.Host) {
|
||||
klog.V(3).Infof("Skipping metric for host %v that is not being served", stats.Host)
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue