Merge pull request #14340 from rook/mergify/bp/release-1.14/pr-14339

monitoring: Set honor labels on the service monitor (backport #14339)
This commit is contained in:
mergify[bot] authored and GitHub committed 2024-06-17 16:05:30 +00:00
commit d9ca8eeb06
2 files changed
+5 -3

No files matched your search

@@ -17,3 +17,4 @@ spec:
- port: http-metrics
path: /metrics
interval: 10s
honorLabels: true
+4 -3
View File
@@ -61,9 +61,10 @@ func GetServiceMonitor(name string, namespace string, portName string) *monitori
},
Endpoints: []monitoringv1.Endpoint{
{
Port: portName,
Path: "/metrics",
Interval: "10s",
Port: portName,
Path: "/metrics",
Interval: "10s",
HonorLabels: true,
},
},
},