monitoring

package
v0.0.0-...-1b19c93 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrafanaUpgradeTest

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

GrafanaUpgradeTest will test if Grafana contains the same dashboards after an upgrade of Kyma

func NewGrafanaUpgradeTest

func NewGrafanaUpgradeTest(k8sCli kubernetes.Interface) *GrafanaUpgradeTest

NewGrafanaUpgradeTest returns new instance of the GrafanaUpgradeTest

func (*GrafanaUpgradeTest) CreateResources

func (ut *GrafanaUpgradeTest) CreateResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

CreateResources retrieves all installed dashboards and stores this information in an config map

func (*GrafanaUpgradeTest) TestResources

func (ut *GrafanaUpgradeTest) TestResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

TestResources retrieves the previously stored list of installed dashboards and compares it to the current list

type MetricsUpgradeTest

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

MetricsUpgradeTest compares metrics from before and after upgrade

func NewMetricsUpgradeTest

func NewMetricsUpgradeTest(k8sCli kubernetes.Interface) (*MetricsUpgradeTest, error)

NewMetricsUpgradeTest returns a new instance of the MetricsUpgradeTest

func (*MetricsUpgradeTest) CreateResources

func (ut *MetricsUpgradeTest) CreateResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

CreateResources retrieves metrics and stores the value in an configmap

func (*MetricsUpgradeTest) TestResources

func (ut *MetricsUpgradeTest) TestResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

TestResources retrieves previously installed metrics values and compares it to the metrics returned for the same query and the same time

type TargetsAndRulesTest

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

TargetsAndRulesTest checks that all targets and rules are healthy

func NewTargetsAndRulesTest

func NewTargetsAndRulesTest(k8sCli kubernetes.Interface, monitoringCli *monitoringv1.MonitoringV1Client) TargetsAndRulesTest

NewTargetsAndRulesTest creates a new instance of TargetsAndRulesTest

func (TargetsAndRulesTest) CreateResources

func (t TargetsAndRulesTest) CreateResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

CreateResources checks that all targets and rules are healthy and no alerts are firing before upgrade

func (TargetsAndRulesTest) TestResources

func (t TargetsAndRulesTest) TestResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

TestResources checks that all targets and rules are healthy and no alerts are firing after upgrade

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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