Metrics: Add --metrics-per-undefined-host argument. (#11818)

Signed-off-by: Jon Carl <grounded042@joncarl.com>
This commit is contained in:
Jon Carl 2024-08-26 13:09:11 -06:00 committed by ajaychoudhary-hotstar
parent bd444df208
commit 63fd7329ed

View file

@ -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",