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.