Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsTest ¶
func (*MetricsTest) AfterAll ¶
func (tc *MetricsTest) AfterAll(f *framework.F)
Clean up fabio/prometheus
func (*MetricsTest) AfterEach ¶
func (tc *MetricsTest) AfterEach(f *framework.F)
Clean 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)
Stand 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.