e439e927ed
Refactor the metrics end-to-end tests so they can be run with our e2e test framework. Runs fabio/prometheus and a collection of jobs that will cause metrics to be measured. We then query Prometheus to ensure we're publishing those allocation metrics and some metrics from the clients as well. Includes adding a placeholder for running the same tests on Windows.
34 lines
484 B
HCL
34 lines
484 B
HCL
job "diskstress" {
|
|
datacenters = ["dc1", "dc2"]
|
|
type = "batch"
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
group "diskstress" {
|
|
count = 1
|
|
|
|
task "diskstress" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "progrium/stress"
|
|
|
|
args = [
|
|
"--hdd",
|
|
"2",
|
|
"--timeout",
|
|
"30",
|
|
]
|
|
}
|
|
|
|
resources {
|
|
cpu = 1024
|
|
memory = 256
|
|
}
|
|
}
|
|
}
|
|
}
|