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

Send logs to prometheus gateway #8289

Closed
germankuber opened this issue Jun 5, 2024 · 2 comments
Closed

Send logs to prometheus gateway #8289

germankuber opened this issue Jun 5, 2024 · 2 comments
Labels
type/docs Improvements or additions to documentation

Comments

@germankuber
Copy link

germankuber commented Jun 5, 2024

I want to configure grafana alloy to send me metrics to prometheus gateway instead mimir.
My config.river is :

otelcol.receiver.otlp "default" {
  grpc {}
  http {}
  output {
    metrics = [otelcol.exporter.prometheus.default.input]
  }
}

otelcol.exporter.prometheus "default" {
  forward_to = [prometheus.remote_write.local.receiver]
}

prometheus.remote_write "local" {
  endpoint {
    url = "http://localhost:9091/metrics/job/example"
  }
      headers = {
            "Content-Encoding" = "snappy",
      }
}

I am getting this error in the agent :

ts=2024-06-05T23:08:33.162192211Z level=error msg="non-recoverable error" component_path=/ component_id=prometheus.remote_write.local subcomponent=rw remote_name=bcf55f url=http://localhost:9091/metrics/job/example count=10 exemplarCount=0 err="server returned HTTP status 400 Bad Request: snappy: corrupt input"

I see that I cant disable the compression from config.river, do you have another approach ?

Thank you.

@germankuber germankuber added the type/docs Improvements or additions to documentation label Jun 5, 2024
@pstibrany
Copy link
Member

Hello. Is this question for grafana/alloy?

@56quarters
Copy link
Contributor

Seems like a grafana/alloy question so I'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants