Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTemplateFile ¶
func ParseTemplateFile() []byte
Types ¶
type Metric ¶
func MetricDescriptionToMetric ¶
func MetricDescriptionToMetric(rrd monitoring.MetricsOpts) Metric
type MetricList ¶
type MetricList []Metric
func MetricsOptsToMetricList ¶
func MetricsOptsToMetricList(Metrics map[monitoring.MetricsKey]monitoring.MetricsOpts, result MetricList) MetricList
func ReadFromPrometheusCR ¶
func ReadFromPrometheusCR() MetricList
func (MetricList) Less ¶
func (m MetricList) Less(i, j int) bool
Less implements sort.Interface.Less
func (MetricList) WriteOut ¶
func (m MetricList) WriteOut()
type PrometheusCR ¶
type PrometheusCR struct { Spec struct { Groups []struct { Name string `yaml:"name"` Rules []yaml.Node `yaml:"rules"` } `yaml:"groups"` } `yaml:"spec"` }
Click to show internal directories.
Click to hide internal directories.