prometheus

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(ruleGroups []v1.RuleGroup, source string, analyzer expr.Analyzer) (map[string]*modelAPIV1.MetricUsage, map[string]*modelAPIV1.MetricUsage, []*modelAPIV1.LogError)

func AnalyzePromQLExpression

func AnalyzePromQLExpression(query string, analyzer expr.Analyzer) (modelAPIV1.Set[string], modelAPIV1.Set[string], error)

AnalyzePromQLExpression is returning a list of valid metric names extracted from the PromQL expression. It also returned a list of partial metric names that likely look like a regexp. This function is kept for backward compatibility and delegates to the provided expression analyzer.

func IsValidMetricName added in v0.5.0

func IsValidMetricName(name string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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