Documentation
¶
Index ¶
- func Analyze(ruleGroups []v1.RuleGroup, source string, analyzer expr.Analyzer) (map[string]*modelAPIV1.MetricUsage, map[string]*modelAPIV1.MetricUsage, ...)
- func AnalyzePromQLExpression(query string, analyzer expr.Analyzer) (modelAPIV1.Set[string], modelAPIV1.Set[string], error)
- func IsValidMetricName(name string) bool
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.