Skip to content

Commit e75c6d0

Browse files
authored
Document empty or nil prometheus service/pod monitors (#2579)
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 0450be4 commit e75c6d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apis/v1alpha1/opentelemetrycollector_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,13 @@ type OpenTelemetryTargetAllocatorPrometheusCR struct {
380380
// PodMonitors to be selected for target discovery.
381381
// This is a map of {key,value} pairs. Each {key,value} in the map is going to exactly match a label in a
382382
// PodMonitor's meta labels. The requirements are ANDed.
383+
// Empty or nil map matches all pod monitors.
383384
// +optional
384385
PodMonitorSelector map[string]string `json:"podMonitorSelector,omitempty"`
385386
// ServiceMonitors to be selected for target discovery.
386387
// This is a map of {key,value} pairs. Each {key,value} in the map is going to exactly match a label in a
387388
// ServiceMonitor's meta labels. The requirements are ANDed.
389+
// Empty or nil map matches all service monitors.
388390
// +optional
389391
ServiceMonitorSelector map[string]string `json:"serviceMonitorSelector,omitempty"`
390392
}

0 commit comments

Comments
 (0)