fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.51k stars 1.5k forks source link

Keep getting ["error reading server preface: http2: frame too large"] with prometheus_remote_write output to thanos receiver #8637

Open Z4ck404 opened 3 months ago

Z4ck404 commented 3 months ago

Bug Report

Describe the bug

I am using fluenbit as sidecar to scrap local pods metrics, tag them and send them to a thanos receiver instance that will output them as tdsb block in cloud block storage. I am using the prometheus_remote_write output plugin to send send the metrics to the thanos receiving that in exposes a remote_write endpoint but I keep getting the error rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large"

To Reproduce

the pipeline configuration

    [INPUT]
      name                    prometheus_scrape
      host                    0.0.0.0
      port                    8080
      metrics_path            /metrics
      scrape_interval         5s

    [OUTPUT]
      Name                 prometheus_remote_write
      Host                 thanos-receiver-svc.logging.svc.cluster.local
      Port                 19291
      URI                  /api/v1/receive

fluentbitsidecar configuration:

  fluent-bit.conf: |
    [SERVICE]
        Flush        1
        Log_Level    info
        Parsers_File parsers.conf
        HTTP_Server   On
        HTTP_Listen   0.0.0.0
        HTTP_Port     2020

Your Environment

patrick-stephens commented 3 months ago

Can you step up to the latest version (3.0.0) and confirm it still happens there?

github-actions[bot] commented 4 days ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.