loki

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LOG_ENTRIES_CHAN_SIZE = 5000

Variables

This section is empty.

Functions

This section is empty.

Types

type LokiLogger

type LokiLogger struct {
	// contains filtered or unexported fields
}

LokiLogger send log messages towards Loki.

func NewLokiLogger

func NewLokiLogger(rootUrl, job string, timeOffset int64) (*LokiLogger, error)

func (*LokiLogger) SetTimeoffset added in v0.14.0

func (c *LokiLogger) SetTimeoffset(timeOffset int64)

Set the timeoffset in seconds

func (*LokiLogger) Shutdown

func (c *LokiLogger) Shutdown()

func (*LokiLogger) Write

func (l *LokiLogger) Write(p []byte) (int, error)

Write a std message

func (*LokiLogger) WriteLevel

func (l *LokiLogger) WriteLevel(level zerolog.Level, p []byte) (n int, err error)

Write a message with given level

type PushRequest added in v0.12.3

type PushRequest struct {
	Streams []StreamAdapter `json:"streams"`
}

type StreamAdapter added in v0.12.3

type StreamAdapter struct {
	Stream map[string]string `json:"stream"`
	Values [][]string        `json:"values"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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