promql

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const PluginKind = "PrometheusPromQLVariable"

Variables

This section is empty.

Functions

func PrometheusPromQL

func PrometheusPromQL(expr string, options ...Option) listvariable.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
}

type Option

type Option func(plugin *Builder) error

func Datasource

func Datasource(datasourceName string) Option

func Expr

func Expr(expr string) Option

func LabelName

func LabelName(labelName string) Option

type PluginSpec

type PluginSpec struct {
	Datasource *datasource.Selector `json:"datasource,omitempty" yaml:"datasource,omitempty"`
	Expr       string               `json:"expr" yaml:"expr"`
	LabelName  string               `json:"labelName,omitempty" yaml:"labelName,omitempty"`
}

Jump to

Keyboard shortcuts

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