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

cannot assign requested address #12975

Closed
wajika opened this issue Aug 5, 2022 · 8 comments
Closed

cannot assign requested address #12975

wajika opened this issue Aug 5, 2022 · 8 comments
Labels
question Further information is requested

Comments

@wajika
Copy link

wajika commented Aug 5, 2022

This error is not a bug.
After I start the otel container there is an error, I don't know if this error is from k8s or bare metal.
can someone give me some advice?

image

otel: 0.56
prometheus: 2.36.1
kubernetes: v1.20.4

  otel-collector-config: |
    receivers:
      otlp:
        protocols:
          grpc:
          http:
    processors:
      batch:
        timeout: 10s
    extensions:
      health_check: {}
      zpages: {}
    exporters:
      prometheus:
        endpoint: "prometheus-k8s.monitoring:9090"
        namespace: "default"
        const_labels:
          "env": "dev"
        send_timestamps: true
        metric_expiration: 180m
        resource_to_telemetry_conversion:
          enabled: true
    service:
      telemetry:
        logs:
          level: "DEBUG"
      extensions: [health_check, zpages]
      pipelines:
        metrics:
          receivers: [otlp]
          processors: [batch,]
          exporters: [prometheus]
        traces:
          receivers: [otlp]
          processors: [batch]
          exporters: [zikpin]
@wajika wajika added the bug Something isn't working label Aug 5, 2022
@TylerHelmuth TylerHelmuth added question Further information is requested and removed bug Something isn't working labels Aug 5, 2022
@evan-bradley
Copy link
Contributor

It looks like you have port 9090 exported for your prometheus-operatord ClusterIP and prometheus-k8s NodePort. Could this be your issue?

@wajika
Copy link
Author

wajika commented Aug 8, 2022

It looks like you have port 9090 exported for your prometheus-operatord ClusterIP and prometheus-k8s NodePort. Could this be your issue?

Sorry, this is my fault, this ticket can be closed.

@mark8s
Copy link

mark8s commented Nov 17, 2022

@wajika what reason? I had the same problem

@wajika
Copy link
Author

wajika commented Dec 2, 2022

@wajika what reason? I had the same problem

Sorry, I forgot how to solve it, I remember it was not a technical problem, it was a configuration error.

@pavankumar98
Copy link

Any one has solution or reason for this issue!

@kamiNaranjo
Copy link

Hi, has anyone the solution for this? I'm getting the same error but I can't get was is my mistake (And I don't know a lot about net)

@gautampawnesh
Copy link

I resolved the issue, by fixing the configuration. I made a mistake into OTEL config prometheus endpoint. Then I followed https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/examples/demo/otel-collector-config.yaml and worked.

@Jeldo
Copy link

Jeldo commented Dec 19, 2023

I faced the same error while I was following this architecture, and found that I had mistakenly configured the receivers' endpoint in the 'exporters' field. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

8 participants