grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.28k stars 172 forks source link

Grafana alloy not pushing all the self logs to loki #1225

Open ashwinisivakumar opened 2 months ago

ashwinisivakumar commented 2 months ago

What's wrong?

we are using below config to push Alloy logs to Loki, observing some log lines are missing.

level = "info" format = "logfmt" write_to = [loki.write.cloud_loki_ent.receiver] } However if we use scrape config to scrape the logs lines from a file, all the log lines are getting pushed into Loki

Steps to reproduce

Run the Grafana alloy with self logs scrape.

System information

No response

Software version

Grafana Alloy v1.0.0

Configuration

logging {
      level  = "info"
      format = "logfmt"
      write_to = [loki.write.cloud_loki_ent.receiver]
    }

    loki.write "cloud_loki_ent" {
      endpoint {
        url        = ""
        batch_wait = "10s"
        tenant_id  = ""
        min_backoff_period = "500ms"
        max_backoff_period = "5m"
        max_backoff_retries = 10

      }
      external_labels = {

      }
    }

Logs

No response

github-actions[bot] commented 1 month ago

This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it. If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue. The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity. Thank you for your contributions!