loki-client

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: MIT

README

loki-client

loki-client is a port of https://github.com/afiskon/promtail-client to use the new endpoint (POST /loki/api/v1/push) instead of the deprecated one (/api/prom/push) This library supports both JSON and Protobuf APIs.

Usage example:

cd cmd/client-example
go build

# make sure source-name is unique for every application instance
# otherwise promtail will reject logs with error:
# "entry out of order for stream"
./client-example proto source-name job-name

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL