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

Prometheus as remote-write-receiver Encountered error 204 No Content #790

Closed
valdemarpavesi opened this issue May 21, 2021 · 2 comments
Closed
Milestone

Comments

@valdemarpavesi
Copy link

Description

Prometheus as remote-write-receiver
url: http://localhost:9090/api/v1/write
Return success code "204 No Content"

but it will be considered as an error for (pusher, err := cortex.InstallNewPipeline)

Environment

  • OS: Linux
  • Architecture: [x86_64]
  • Go Version: [go1.16.2]
  • go.opentelemetry.io/otel v0.20.0

Steps To Reproduce

  1. run example:

https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/exporters/metric/cortex/example

  1. deploy prometheus

docker run -u root -d -p 9090:9090 \ -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml \ --name prometheus \ prom/prometheus --config.file=/etc/prometheus/prometheus.yml --enable-feature=remote-write-receiver --enable-feature=exemplar-storage

  1. config.yml opentelemtry to url: http://localhost:9090/api/v1/write

Expected behavior

fmt.Println("Encountered error: ", err.Error())

it will return: Encountered error 204 No Content

@valdemarpavesi
Copy link
Author

to reproduce the problem:
https://www.katacoda.com/va/scenarios/opentelemetry-cortex

@Aneurysm9 Aneurysm9 transferred this issue from open-telemetry/opentelemetry-go May 21, 2021
plantfansam referenced this issue in plantfansam/opentelemetry-go-contrib Mar 18, 2022
Add example that uses OTLP and the collector
@MrAlias
Copy link
Contributor

MrAlias commented Nov 2, 2022

Closing, stale. The cortex exporter and example were remove in https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.5.0

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

3 participants