Skip to content
Go Client Library for Loggregator
Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conversion fix v2 -> v1 envelope conversion Apr 26, 2019
examples Update RLP gateway example to use golang proto Aug 2, 2018
pulseemitter Revert "Add Increment and Decrement to pulseemitter GaugeMetric" Sep 10, 2018
rpc/loggregator_v2 rpc/loggregator_v2: regenerate envelopes with snake case Oct 24, 2018
runtimeemitter Resolve linting errors Apr 17, 2018
scripts Fix expires certs and add generate certs script Apr 24, 2019
v1 rename parameter to SetTotal May 7, 2019
.envrc add go mod Jun 28, 2019
.gitignore remove vendor directory Aug 13, 2019
LICENSE Add Apache 2.0 license and notice files May 22, 2017
NOTICE Add Apache 2.0 license and notice files May 22, 2017
README.md Update example docs in README Dec 21, 2017
bindata_test.go Fix expires certs and add generate certs script Apr 24, 2019
doc.go Minor documentation update Aug 21, 2017
envelope_stream_connector.go envelope stream connector: add dial option configuration Oct 2, 2018
envelope_stream_connector_test.go rpc/loggregator_v2: regenerate for protobuf v1.2.0 Oct 24, 2018
fixtures_test.go Fix expires certs and add generate certs script Apr 24, 2019
go.mod Remove metrics in favor of go metrics registry Sep 30, 2019
go.sum Remove metrics in favor of go metrics registry Sep 30, 2019
ingress_client.go set delta to 0 when WithTotal counter option is used May 7, 2019
ingress_client_test.go add ablity to emit counters with totals May 6, 2019
one_to_one_envelope_batch_diode.go Adds WithEnvelopeStreamBuffer Dec 18, 2017
rlp_gateway_client.go Reconnect when RLP Gateway connection is about to close Nov 28, 2018
rlp_gateway_client_test.go Reconnect when RLP Gateway connection is about to close Nov 28, 2018
servers_test.go Resolve linting errors Apr 17, 2018
suite_test.go Fix race condition in test and .travis.yml to handle code.cloudfoundr… Oct 20, 2017
tls.go Updated function comments Jun 26, 2017

README.md

go-loggregator

GoDoc travis slack.cloudfoundry.org

This is a golang client library for Loggregator.

Versions

At present, Loggregator supports two API versions: v1 (UDP) and v2 (gRPC). This library provides clients for both versions.

Note that this library is also versioned. Its versions have no relation to the Loggregator API.

Usage

This repository should be imported as:

import loggregator "code.cloudfoundry.org/go-loggregator"

Examples

To build the examples, cd into the directory of the example and run go build

V1 Ingress

Emits envelopes to metron using dropsonde.

V2 Ingress

Emits envelopes to metron using the V2 loggregator-api.

Required Environment Variables:

  • CA_CERT_PATH
  • CERT_PATH
  • KEY_PATH

Runtime Stats

Emits information about the running Go proccess using a V2 ingress client.

Required Environment Variables:

  • CA_CERT_PATH
  • CERT_PATH
  • KEY_PATH

Envelope Stream Connector

Reads envelopes from the Loggregator API (e.g. Reverse Log Proxy).

Required Environment Variables:

  • CA_CERT_PATH
  • CERT_PATH
  • KEY_PATH
  • LOGS_API_ADDR
  • SHARD_ID
You can’t perform that action at this time.