Documentation ¶
Index ¶
- func ExecDockerJobHCL(t *testing.T) string
- func PromQueryActiveInstances(ctx context.Context, addr string, job string) ([]string, error)
- func PromQueryAlive(ctx context.Context, addr string, job string, metric string, count int) error
- func PromQueryVector(ctx context.Context, addr string, job string, metric string) ([]float64, error)
- func TestNomadJobs(t *testing.T, ctx context.Context, consulCli *consulapi.Client, ...)
- func TestPrometheus(ctx context.Context, promaddr string) error
- func UntilPass(t *testing.T, ctx context.Context, f func() error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecDockerJobHCL ¶
func PromQueryAlive ¶
PromQueryAlive makes sure that the job has count target instances and that the chosen canary metric is present for all of them.
func PromQueryVector ¶
func TestNomadJobs ¶
func TestNomadJobs(t *testing.T, ctx context.Context, consulCli *consulapi.Client, nomadCli *nomadapi.Client, name, jobhcl string, tester func(ctx context.Context, addr string) error)
TestNomadJobs exercises a Consul/Nomad/Prometheus cluster by registering jobhcl as a Nomad job.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.