OpenTelemetry Bot d680729c09 [chore] Prepare release 0.90.0 (#29543) há 1 ano atrás
..
internal 41eb32eeb6 fix(deps): update github.com/grafana/loki/pkg/push digest to 658f4f1 (#29493) há 1 ano atrás
testdata 25cbf9d2fd [receiver/loki] Added new component (#19399) há 1 ano atrás
Makefile 25cbf9d2fd [receiver/loki] Added new component (#19399) há 1 ano atrás
README.md ca3ebe7157 [receiver/loki] Link readme to config helpers (#26369) há 1 ano atrás
config.go 5133f4ccd6 [chore] use license shortform (#22052) há 1 ano atrás
config_test.go 5133f4ccd6 [chore] use license shortform (#22052) há 1 ano atrás
factory.go 5133f4ccd6 [chore] use license shortform (#22052) há 1 ano atrás
factory_test.go 5133f4ccd6 [chore] use license shortform (#22052) há 1 ano atrás
go.mod d680729c09 [chore] Prepare release 0.90.0 (#29543) há 1 ano atrás
go.sum 40b485f08a Update core for v0.90.0 release (#29539) há 1 ano atrás
loki.go 98124e0b6d Fix panic when LogRecordCount is called after ConsumeLogs (#29274) há 1 ano atrás
loki_test.go f4c44858b5 [all][chore] Moved from interface{} to any for all go code (#29072) há 1 ano atrás
metadata.yaml 62c7b5363d Remove @kovrus from code owners and approvers. (#24565) há 1 ano atrás

README.md

Loki Receiver

Status
Stability alpha: logs
Distributions contrib, sumo
Issues Open issues Closed issues
Code Owners @mar4uk, @jpkrohling

The Loki receiver implements the Loki push api as specified here. It allows Promtail instances to specify the open telemetry collector as their lokiAddress.

This receiver runs HTTP and GRPC servers to ingest log entries in Loki format.

Getting Started

The settings are:

  • endpoint (required, default = 0.0.0.0:3500 for HTTP protocol, 0.0.0.0:3600 gRPC protocol): host:port to which the receiver is going to receive data.
  • use_incoming_timestamp (optional, default = false) if set true the timestamp from Loki log entry is used

Example:

receivers:
  loki:
    protocols:
      http:
        endpoint: 0.0.0.0:3500
      grpc:
        endpoint: 0.0.0.0:3600
    use_incoming_timestamp: true

Advanced Configuration

Several helper files are leveraged to provide additional capabilities automatically: