monitoring

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 20 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

Jump to

Keyboard shortcuts

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