Open ns-czc opened 3 weeks ago
I think this should be open in https://github.com/open-telemetry/opentelemetry-collector-contrib/issues
Can it be a typo? kubernetes_sd_config:
-> kubernetes_sd_configs:
It is indeed typo, thanks for the help.
Great! Can we close the issue in that case? @czchen
this can be closed, thanks for the help.
Describe the bug
When using the Prometheus Receiver with the
kubernetes_sd_configs
tag, the OpenTelemetry Collector cannot unmarshal the Prometheus config yaml file.This is the same as https://github.com/open-telemetry/opentelemetry-collector/issues/1867. Maybe upgrading is needed?
Steps to reproduce
helm install opentelemetry-operator opentelemetry/opentelemetry-operator --namespace opentelemetry-operator --create-namespace --version v0.68.1 --set manager.collectorImage.repository=otel/opentelemetry-collector-k8s
OpenTelemetryCollector
with the following config:What did you expect to see?
opentelemetry collector runs and fetch Prometheus metrics according to
kubernetes_sd_config
.What did you see instead?
Found the following error in collector pod.
What version did you use?
otel/opentelemetry-collector-k8s:0.107.0
What config did you use?
Environment
GKE v1.29.6-gke.1254000
Additional context