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

Allow OTLP export with TLS enabled #37

Open
hertzsprung opened this issue Oct 17, 2024 · 1 comment
Open

Allow OTLP export with TLS enabled #37

hertzsprung opened this issue Oct 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hertzsprung
Copy link

I'm running a Grafana agent that receives traffic over GRPC+TLS, but it seems krakend switches off TLS with no config option to reenable it.

krakend then fails with KRAKEND ERROR: [SERVICE: OpenTelemetry] failed to upload metrics: context deadline exceeded: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large".

Could a config option be added to enable TLS with GRPC?

@Kavindu-Jayasinghe
Copy link

Kavindu-Jayasinghe commented Oct 18, 2024

Hi! I faced a similar issue with sending metrics to Grafana. Instead of using gRPC with TLS directly, I set up Prometheus to export metrics from KrakenD, and it's working well for me.

Here’s the configuration I used in KrakenD for Prometheus:

"prometheus": [
  {
    "name": "metrics_export",
    "port": 9090, 
    "process_metrics": true,
    "go_metrics": true
  }
]

Prometheus scrapes the metrics from KrakenD, and then Grafana pulls them from Prometheus. This setup is working without any issues for me.

@alombarte alombarte added the enhancement New feature or request label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants