insights

package
v0.0.0-...-898015a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RecommendationCollector = &Collector{
		metricName: "insights_recommendation_active",
	}
)

Functions

func IncrementCounterRequestSend

func IncrementCounterRequestSend(status int)

func MustRegisterMetrics

func MustRegisterMetrics(registrables ...metrics.Registerable)

MustRegisterMetrics registers provided registrables in the Insights metrics registry. This function should be called from init() functions only, because it uses the MustRegister method, and therefore panics in case of an error.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector collects insights recommendations

func (*Collector) ClearState

func (c *Collector) ClearState()

func (*Collector) ClusterID

func (c *Collector) ClusterID() v1.ClusterID

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Create

func (c *Collector) Create(_ *semver.Version) bool

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

func (*Collector) FQName

func (c *Collector) FQName() string

func (*Collector) SetActiveRecommendations

func (c *Collector) SetActiveRecommendations(activeRecommendations []types.InsightsRecommendation)

func (*Collector) SetClusterID

func (c *Collector) SetClusterID(clusterID v1.ClusterID)

type PrometheusRulesController

type PrometheusRulesController struct {
	// contains filtered or unexported fields
}

PrometheusRulesController listens to the configuration observer and creates or removes the Insights Prometheus Rules definitions accordingly

func NewPrometheusRulesController

func NewPrometheusRulesController(configurator configobserver.Interface, kubeConfig *rest.Config) PrometheusRulesController

func (*PrometheusRulesController) Start

Start starts listening to the configuration observer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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