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:
2 files changed
+5
-3
No files matched your search
@@ -17,3 +17,4 @@ spec:
|
||||
- port: http-metrics
|
||||
path: /metrics
|
||||
interval: 10s
|
||||
honorLabels: true
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user