Skip to content

Commit 1b06342

Browse files
updating type
1 parent 4a83c46 commit 1b06342

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/otel-allocator/config/config.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ type Config struct {
5353
AllocationStrategy string `yaml:"allocation_strategy,omitempty"`
5454
FilterStrategy string `yaml:"filter_strategy,omitempty"`
5555
PrometheusCR PrometheusCRConfig `yaml:"prometheus_cr,omitempty"`
56-
PodMonitorSelector map[string]string `yaml:"pod_monitor_selector,omitempty"`
57-
ServiceMonitorSelector map[string]string `yaml:"service_monitor_selector,omitempty"`
58-
ServiceMonitorNamespaceSelector map[string]string `yaml:"service_monitor_namespace_selector,omitempty"`
59-
PodMonitorNamespaceSelector map[string]string `yaml:"pod_monitor_namespace_selector,omitempty"`
56+
PodMonitorSelector *metav1.LabelSelector `yaml:"pod_monitor_selector,omitempty"`
57+
ServiceMonitorSelector *metav1.LabelSelector `yaml:"service_monitor_selector,omitempty"`
58+
ServiceMonitorNamespaceSelector *metav1.LabelSelector `yaml:"service_monitor_namespace_selector,omitempty"`
59+
PodMonitorNamespaceSelector *metav1.LabelSelector `yaml:"pod_monitor_namespace_selector,omitempty"`
6060
}
6161

6262
type PrometheusCRConfig struct {

0 commit comments

Comments
 (0)