mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 12:47:36 +08:00
Merge pull request #305 from GLYASAI/RAINBOND-984
[FIX] error skiping metric for host
This commit is contained in:
commit
5d73f15103
@ -28,7 +28,6 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
@ -209,7 +208,7 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
|
||||
return
|
||||
}
|
||||
for _, stats := range statsBatch {
|
||||
if !sc.hosts.Has(stats.Host) {
|
||||
if !sc.hosts.HasAny(stats.Host, "tls"+stats.Host) {
|
||||
logrus.Infof("skiping metric for host %v that is not being served", stats.Host)
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user