metrics

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsTest

type MetricsTest struct {
	framework.TC
	// contains filtered or unexported fields
}

func (*MetricsTest) AfterAll

func (tc *MetricsTest) AfterAll(f *framework.F)

AfterAll cleans up fabio/prometheus.

func (*MetricsTest) AfterEach

func (tc *MetricsTest) AfterEach(f *framework.F)

AfterEach CleanS up the target jobs after each test case, but keep fabio/prometheus for reuse between the two test cases (Windows vs Linux).

func (*MetricsTest) BeforeAll

func (tc *MetricsTest) BeforeAll(f *framework.F)

BeforeAll stands up Prometheus to collect metrics from all clients and allocs, with fabio as a system job in front of it so that we don't need to have prometheus use host networking.

func (*MetricsTest) TestMetricsLinux

func (tc *MetricsTest) TestMetricsLinux(f *framework.F)

TestMetricsLinux runs a collection of jobs that exercise alloc metrics. Then we query prometheus to verify we're collecting client and alloc metrics and correctly presenting them to the prometheus scraper.

func (*MetricsTest) TestMetricsWindows

func (tc *MetricsTest) TestMetricsWindows(f *framework.F)

TestMetricsWindows runs a collection of jobs that exercise alloc metrics. Then we query prometheus to verify we're collecting client and alloc metrics and correctly presenting them to the prometheus scraper.

Jump to

Keyboard shortcuts

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