Skip to content

Commit

Permalink
Merge pull request kubevirt#6570 from erkanerol/fix-up-metric
Browse files Browse the repository at this point in the history
Use honorLabels instead of labelDrop
  • Loading branch information
kubevirt-bot authored Oct 13, 2021
2 parents d2f14af + 8bdf8b2 commit a92b60b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/virt-operator/resource/generate/components/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ func NewServiceMonitorCR(namespace string, monitorNamespace string, insecureSkip
TLSConfig: &v1.TLSConfig{
InsecureSkipVerify: insecureSkipVerify,
},
RelabelConfigs: []*v1.RelabelConfig{
{
Regex: "namespace",
Action: "labeldrop",
},
},
HonorLabels: true,
},
},
},
Expand Down

0 comments on commit a92b60b

Please sign in to comment.