Metrics: Add --metrics-per-undefined-host
argument. (#11818)
Signed-off-by: Jon Carl <grounded042@joncarl.com>
This commit is contained in:
parent
bd444df208
commit
63fd7329ed
1 changed files with 9 additions and 8 deletions
|
@ -86,14 +86,15 @@ func TestCollector(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
name string
|
name string
|
||||||
data []string
|
data []string
|
||||||
metrics []string
|
metrics []string
|
||||||
useStatusClasses bool
|
metricsPerUndefinedHost bool
|
||||||
excludeMetrics []string
|
useStatusClasses bool
|
||||||
wantBefore string
|
excludeMetrics []string
|
||||||
removeIngresses []string
|
wantBefore string
|
||||||
wantAfter string
|
removeIngresses []string
|
||||||
|
wantAfter string
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "invalid metric object should not increase prometheus metrics",
|
name: "invalid metric object should not increase prometheus metrics",
|
||||||
|
|
Loading…
Reference in a new issue