loki

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CMD = &cobra.Command{
	Use:   "send-loki",
	Short: "Send logs to Loki instance",
	RunE: func(cmd *cobra.Command, args []string) error {
		if valid, err := Validate(); !valid {
			return err
		}
		return sendLogsToLoki(viper.GetString(folderFlag), viper.GetString(lokiURLFlag), viper.GetStringMapString(labelsFlag))
	},
}

Functions

func Validate

func Validate() (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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