loki

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableLokiMonitor

func EnableLokiMonitor()

Types

type LokiSetting

type LokiSetting struct {
	// monitor.AppSettings
	Config       *lokiclient.PushConfig
	FixedHeaders map[string]string
	Logger       *zap.Logger
	MaxBytes     int
	// contains filtered or unexported fields
}

func InitLokiMonitor

func InitLokiMonitor(logger *zap.Logger) (*LokiSetting, error)

func (*LokiSetting) ReportError

func (lm *LokiSetting) ReportError(err error)

func (*LokiSetting) ReportScheduleJob

func (lm *LokiSetting) ReportScheduleJob(req *schedule.JobHistory)

func (*LokiSetting) ReportTracing

func (lm *LokiSetting) ReportTracing(tr *monitor.TracingDetails)

Jump to

Keyboard shortcuts

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