analyze

package
v0.0.0-...-f8e07d0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMetricsInBoard

func ParseMetricsInBoard(mig *MetricsInGrafana, board minisdk.Board)

func ParseMetricsInRuleGroup

func ParseMetricsInRuleGroup(mir *MetricsInRuler, group rwrulefmt.RuleGroup, ns string) error

Types

type DashboardMetrics

type DashboardMetrics struct {
	Slug        string   `json:"slug"`
	UID         string   `json:"uid,omitempty"`
	Title       string   `json:"title"`
	Metrics     []string `json:"metrics"`
	ParseErrors []string `json:"parse_errors"`
}

type JobCount

type JobCount struct {
	Job   string `json:"job"`
	Count int    `json:"count"`
}

type MetricCount

type MetricCount struct {
	Metric    string     `json:"metric"`
	Count     int        `json:"count"`
	JobCounts []JobCount `json:"job_counts"`
}

type MetricsInGrafana

type MetricsInGrafana struct {
	MetricsUsed    model.LabelValues   `json:"metricsUsed"`
	OverallMetrics map[string]struct{} `json:"-"`
	Dashboards     []DashboardMetrics  `json:"dashboards"`
}

type MetricsInPrometheus

type MetricsInPrometheus struct {
	TotalActiveSeries      uint64 `json:"total_active_series"`
	InUseActiveSeries      uint64 `json:"in_use_active_series"`
	AdditionalActiveSeries uint64 `json:"additional_active_series"`

	InUseMetricCounts      []MetricCount `json:"in_use_metric_counts"`
	AdditionalMetricCounts []MetricCount `json:"additional_metric_counts"`

	Errors []string `json:"errors"`
}

type MetricsInRuler

type MetricsInRuler struct {
	MetricsUsed    model.LabelValues   `json:"metricsUsed"`
	OverallMetrics map[string]struct{} `json:"-"`
	RuleGroups     []RuleGroupMetrics  `json:"ruleGroups"`
}

type RuleGroupMetrics

type RuleGroupMetrics struct {
	Namespace   string   `json:"namspace"`
	GroupName   string   `json:"name"`
	Metrics     []string `json:"metrics"`
	ParseErrors []string `json:"parse_errors"`
}

Jump to

Keyboard shortcuts

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