Update metric dependencies (#5023)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-02-06 09:50:13 -03:00 committed by GitHub
parent 4befa8cc8a
commit 9278f0cad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
128 changed files with 3873 additions and 2729 deletions

View file

@ -38,6 +38,13 @@ type Stopable interface {
Stop()
}
func newBinaryNameMatcher(name, binary string) common.MatchNamer {
return BinaryNameMatcher{
Name: name,
Binary: binary,
}
}
// BinaryNameMatcher define a namer using the binary name
type BinaryNameMatcher struct {
Name string
@ -97,14 +104,11 @@ func NewNGINXProcess(pod, namespace, ingressClass string) (NGINXProcessCollector
return nil, err
}
nm := BinaryNameMatcher{
Name: name,
Binary: binary,
}
nm := newBinaryNameMatcher(name, binary)
p := namedProcess{
scrapeChan: make(chan scrapeRequest),
Grouper: proc.NewGrouper(nm, true, false, false),
Grouper: proc.NewGrouper(nm, true, false, false, false),
fs: fs,
}