Replies: 2 comments
-
According to the readme you should be able to configure CORS origins on the
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I had the same error. As it turned out, I had configured to export to Tempo's gRPC endpoint, but I was using the http trace exporter: import (
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
) Switching to the http port (4318) or using the grpc exporter package fixed it for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to query oen telemetry collector through below mentiorn API, but getting an error as
Request: Request: http://127.0.0.1:4318/v1/metrics
Browser:
405 method not allowed, supported: [POST]
Prometheus:
Even tried to connect to Prometheus, but the connection is getting refused.
Postman:
"415 unsupported media type, supported: [application/json, application/x-protobuf]"
In case, if I pass Content-Type "application/json", getting some junk data:
Setup Info:
Using Docker desktop where All pods are hosted and running.
Configuration:
docker compose:
otel-collector:
image: otel/opentelemetry-collector:latest
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317"
- "4318:4318" # Expose OTLP HTTP endpoint
networks:
- HACK
prometheus:
image: quay.io/prometheus/prometheus:v2.42.0
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- HACK
depends_on:
- otel-collector
prometheus.yml
global:
scrape_interval: 100s
scrape_timeout: 90s
scrape_configs:
metrics_path: /metrics
static_configs:
otel-collector-config.yaml
receivers:
otlp:
protocols:
grpc:
endpoint: "localhost:4319"
http:
endpoint: "localhost:4317"
exporters:
prometheus:
endpoint: "localhost:4318"
send_timestamps: true
metric_expiration: 180m
resource_to_telemetry_conversion:
enabled: true
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [prometheus]
Beta Was this translation helpful? Give feedback.
All reactions