labelnames

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PluginKind = "PrometheusLabelNamesVariable"

Variables

This section is empty.

Functions

func PrometheusLabelNames

func PrometheusLabelNames(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 AddMatcher

func AddMatcher(matcher string) Option

func Datasource

func Datasource(datasourceName string) Option

func Filter

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

func Matchers

func Matchers(matchers ...string) Option

type PluginSpec

type PluginSpec struct {
	Datasource *datasource.Selector `json:"datasource,omitempty" yaml:"datasource,omitempty"`
	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