Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couldn't determine metrics port from configuration #587

Open
saleem-unifycare opened this issue Jul 24, 2023 · 0 comments
Open

couldn't determine metrics port from configuration #587

saleem-unifycare opened this issue Jul 24, 2023 · 0 comments

Comments

@saleem-unifycare
Copy link

saleem-unifycare commented Jul 24, 2023

Hi Team,

we have installed ADOT add-on EKS with neccessary service role and instrumented our nodejs applications with otel.
we are trying to use aws x-ray for collecting traces and deployed collector-xray as deployment.
But we are getting below operator logs.

{"level":"error","ts":"2023-07-24T05:28:22Z","logger":"controllers.OpenTelemetryCollector","msg":"Cannot create liveness probe.","opentelemetrycollector":{"name":"my-collector-xray","namespace":"amazon-cloudwatch"},"error":"service property in the configuration doesn't contain extensions","stacktrace":"github.com/open-telemetry/opentelemetry-operator/pkg/collector.Container\n\t/workspace/pkg/collector/container.go:127\ngithub.com/open-telemetry/opentelemetry-operator/pkg/collector.Deployment\n\t/workspace/pkg/collector/deployment.go:55\ngithub.com/open-telemetry/opentelemetry-operator/pkg/collector/reconcile.Deployments\n\t/workspace/pkg/collector/reconcile/deployment.go:39\ngithub.com/open-telemetry/opentelemetry-operator/controllers.(*OpenTelemetryCollectorReconciler).RunTasks\n\t/workspace/controllers/opentelemetrycollector_controller.go:223\ngithub.com/open-telemetry/opentelemetry-operator/controllers.(*OpenTelemetryCollectorReconciler).Reconcile\n\t/workspace/controllers/opentelemetrycollector_controller.go:211\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:118\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:314\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226"}
{"level":"info","ts":"2023-07-24T05:28:22Z","logger":"controllers.OpenTelemetryCollector","msg":"couldn't determine metrics port from configuration, using 8888 default value","opentelemetrycollector":{"name":"my-collector-xray","namespace":"amazon-cloudwatch"},"error":"missing port in address"}

this is the xray-collector config file. Pleasehelp us

apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: my-collector-xray
spec:
mode: deployment
resources:
requests:
cpu: "1"
limits:
cpu: "1"
serviceAccount: adot-collector
config: |
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318

processors:
  batch/traces:
    timeout: 1s
    send_batch_size: 50

exporters:
  awsxray:
    region: ap-south-1


service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch/traces]
      exporters: [awsxray]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant