loki

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loki

type Loki struct {
	Ref          string
	Hidden       bool
	Expr         string
	LegendFormat string
}

Loki represents a loki query.

func New

func New(query string, options ...Option) *Loki

New creates a new prometheus query.

type Option

type Option func(target *Loki)

Option represents an option that can be used to configure a loki query.

func Hide

func Hide() Option

Hide the query. Grafana does not send hidden queries to the data source, but they can still be referenced in alerts.

func Legend

func Legend(legend string) Option

Legend sets the legend format.

func Ref

func Ref(ref string) Option

Ref sets the reference ID for this query.

Jump to

Keyboard shortcuts

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