labelvalues

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: 6 Imported by: 18

Documentation

Index

Constants

View Source
const PluginKind = "PrometheusLabelValuesVariable"

Variables

This section is empty.

Functions

func PrometheusLabelValues

func PrometheusLabelValues(labelName string, options ...Option) list_variable.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
	Filters    []v1.Variable `json:"-" yaml:"-"`
}

func (*Builder) ApplyFilters

func (b *Builder) ApplyFilters() error

type Option

type Option func(plugin *Builder) error

func AddMatchers

func AddMatchers(matcher string) Option

func Datasource

func Datasource(datasourceName string) Option

func Filter

func Filter(variables ...v1.Variable) Option

func LabelName

func LabelName(labelName string) Option

func Matchers

func Matchers(matchers ...string) Option

type PluginSpec

type PluginSpec struct {
	Datasource *datasource.Selector `json:"datasource,omitempty" yaml:"datasource,omitempty"`
	LabelName  string               `json:"labelName" yaml:"labelName"`
	Matchers   []string             `json:"matchers,omitempty" yaml:"matchers,omitempty"`
}

Jump to

Keyboard shortcuts

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