Open jlcrow opened 3 days ago
@jlcrow it seems you don't have ServiceMonitor CRDs in your cluster per the error message:
failed to create objects for otel: no kind is registered for the type v1.ServiceMonitor in scheme "pkg/runtime/scheme.go:100"
Can you confirm that the CRD is installed in your cluster?
Component(s)
target allocator
What happened?
Description
When metrics enabled on target allocator Collector comes up in a partially initialized state, causing issues such as hpa to not initialize depending on features enabled
Steps to Reproduce
Deploy Prometheus Operator CRDs for ServiceMonitor and PodMonitor Deploy OpenTelemetry Operator with following specs
Create an OpenTelemetry collector with a TargetAllocator
Expected Result
Collector initialized with HPA and minimum of 3 replicas
Actual Result
Collector never fully comes up and reports status, scale never happens, error received stating ServiceMonitor could not be created
Kubernetes Version
1.30.5
Operator version
0.74.2
Collector version
0.113.0
Environment information
Environment
GKE
Log output
From the operator logs
targetAllocator: observability: metrics: enableMetrics: false