go-loki-push

module
v0.0.0-...-b14f0d7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT

README

go-loki-push

A lightweight client for pushing logs to Loki written in Golang

Inspired by https://pkg.go.dev/github.com/grafana/loki, find that it is a sledgehammer for cracking a nut so I create this package as a simple requests pusher to loki, without any unwanted configs or unused dependencies.

This package just does simple jobs, batching requests and sending them to loki, it provides a grpc/http client pusher to push logs to Loki ingester.

Installation

$ go get github.com/cymonkey/go-loki-push

Usage

import (
    "github.com/cymonkey/go-loki-push/loki"
)

func main() {
    loki.NewClient(NewWithDefaultConfig(&loki.Config{}))
}

License

MIT License, check LICENSE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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