Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/vendor/google.golang.org/grpc
Trevor Whitney 8c38d462f5
fix: downgrade grpc to fix regression (#14065)
9 months ago
..
attributes update dskit to latest version (#11287) 2 years ago
authz/audit update dskit to latest version (#11287) 2 years ago
backoff fix: downgrade grpc to fix regression (#14065) 9 months ago
balancer fix: downgrade grpc to fix regression (#14065) 9 months ago
binarylog/grpc_binarylog_v1 fix: downgrade grpc to fix regression (#14065) 9 months ago
channelz Bump cloud.google.com/go/storage from 1.27.0 to 1.29.0 (#8276) 2 years ago
codes feat: upgrade prometheus (#13671) 10 months ago
connectivity Update Prometheus to latest (#5545) 3 years ago
credentials fix: downgrade grpc to fix regression (#14065) 9 months ago
encoding fix: downgrade grpc to fix regression (#14065) 9 months ago
experimental fix: downgrade grpc to fix regression (#14065) 9 months ago
grpclog fix: downgrade grpc to fix regression (#14065) 9 months ago
health fix: downgrade grpc to fix regression (#14065) 9 months ago
internal fix: downgrade grpc to fix regression (#14065) 9 months ago
keepalive feat(promtail): initContainers (#655) 6 years ago
metadata fix: downgrade grpc to fix regression (#14065) 9 months ago
orca fix: downgrade grpc to fix regression (#14065) 9 months ago
peer feat: upgrade prometheus (#13671) 10 months ago
resolver feat: upgrade prometheus (#13671) 10 months ago
serviceconfig Bump cloud.google.com/go/storage from 1.27.0 to 1.29.0 (#8276) 2 years ago
stats fix: downgrade grpc to fix regression (#14065) 9 months ago
status ingestion: native otlp ingestion support (#10727) 2 years ago
tap update dskit to latest version (#11287) 2 years ago
test/bufconn fix: downgrade grpc to fix regression (#14065) 9 months ago
xds fix: downgrade grpc to fix regression (#14065) 9 months ago
AUTHORS Add vendor stuff. 7 years ago
CODE-OF-CONDUCT.md Fix duplicate labels (update cortex) (#1280) 6 years ago
CONTRIBUTING.md feat: upgrade prometheus (#13671) 10 months ago
GOVERNANCE.md Fix duplicate labels (update cortex) (#1280) 6 years ago
LICENSE Add vendor stuff. 7 years ago
MAINTAINERS.md fix: downgrade grpc to fix regression (#14065) 9 months ago
Makefile feat: upgrade prometheus (#13671) 10 months ago
NOTICE.txt Update Prometheus to latest (#5545) 3 years ago
README.md feat: upgrade prometheus (#13671) 10 months ago
SECURITY.md fix: downgrade grpc to fix regression (#14065) 9 months ago
backoff.go Bump cloud.google.com/go/storage from 1.27.0 to 1.29.0 (#8276) 2 years ago
balancer_wrapper.go fix: downgrade grpc to fix regression (#14065) 9 months ago
call.go ingestion: native otlp ingestion support (#10727) 2 years ago
clientconn.go fix: downgrade grpc to fix regression (#14065) 9 months ago
codec.go fix: downgrade grpc to fix regression (#14065) 9 months ago
dialoptions.go fix: downgrade grpc to fix regression (#14065) 9 months ago
doc.go fix: downgrade grpc to fix regression (#14065) 9 months ago
interceptor.go ingestion: native otlp ingestion support (#10727) 2 years ago
picker_wrapper.go feat: upgrade prometheus (#13671) 10 months ago
preloader.go fix: downgrade grpc to fix regression (#14065) 9 months ago
regenerate.sh fix: downgrade grpc to fix regression (#14065) 9 months ago
resolver_wrapper.go fix: downgrade grpc to fix regression (#14065) 9 months ago
rpc_util.go fix: downgrade grpc to fix regression (#14065) 9 months ago
server.go fix: downgrade grpc to fix regression (#14065) 9 months ago
service_config.go feat: upgrade prometheus (#13671) 10 months ago
shared_buffer_pool.go fix: downgrade grpc to fix regression (#14065) 9 months ago
stream.go fix: downgrade grpc to fix regression (#14065) 9 months ago
stream_interfaces.go feat: upgrade prometheus (#13671) 10 months ago
trace.go chore(deps): Update Prometheus in Loki and Promtail (#12245) 1 year ago
trace_notrace.go chore(deps): Update Prometheus in Loki and Promtail (#12245) 1 year ago
trace_withtrace.go chore(deps): Update Prometheus in Loki and Promtail (#12245) 1 year ago
version.go fix: downgrade grpc to fix regression (#14065) 9 months ago

README.md

gRPC-Go

GoDoc GoReportCard codecov

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the Go gRPC docs, or jump directly into the quick start.

Prerequisites

Installation

Simply add the following import to your code, and then go [build|run|test] will automatically fetch the necessary dependencies:

import "google.golang.org/grpc"

Note: If you are trying to access grpc-go from China, see the FAQ below.

Learn more

FAQ

I/O Timeout Errors

The golang.org domain may be blocked from some countries. go get usually produces an error like the following when this happens:

$ go get -u google.golang.org/grpc
package google.golang.org/grpc: unrecognized import path "google.golang.org/grpc" (https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

To build Go code, there are several options:

  • Set up a VPN and access google.golang.org through that.

  • With Go module support: it is possible to use the replace feature of go mod to create aliases for golang.org packages. In your project's directory:

    go mod edit -replace=google.golang.org/grpc=github.com/grpc/grpc-go@latest
    go mod tidy
    go mod vendor
    go build -mod=vendor
    

    Again, this will need to be done for all transitive dependencies hosted on golang.org as well. For details, refer to golang/go issue #28652.

Compiling error, undefined: grpc.SupportPackageIsVersion

Please update to the latest version of gRPC-Go using go get google.golang.org/grpc.

How to turn on logging

The default logger is controlled by environment variables. Turn everything on like this:

$ export GRPC_GO_LOG_VERBOSITY_LEVEL=99
$ export GRPC_GO_LOG_SEVERITY_LEVEL=info

The RPC failed with error "code = Unavailable desc = transport is closing"

This error means the connection the RPC is using was closed, and there are many possible reasons, including:

  1. mis-configured transport credentials, connection failed on handshaking
  2. bytes disrupted, possibly by a proxy in between
  3. server shutdown
  4. Keepalive parameters caused connection shutdown, for example if you have configured your server to terminate connections regularly to trigger DNS lookups. If this is the case, you may want to increase your MaxConnectionAgeGrace, to allow longer RPC calls to finish.

It can be tricky to debug this because the error happens on the client side but the root cause of the connection being closed is on the server side. Turn on logging on both client and server, and see if there are any transport errors.