Skip to content

cymonkey/go-loki-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages