9b2b4da3a4
Adds Windows targets to the client/allocs metrics tests. Removes the `allocstats` test, which covers less than these tests and is now redundant. Adds a firewall rule to our Windows instances so that the prometheus server can scrape the Nomad HTTP API for metrics.
35 lines
581 B
HCL
35 lines
581 B
HCL
job "factorial_windows" {
|
|
datacenters = ["dc1"]
|
|
type = "service"
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "windows"
|
|
}
|
|
|
|
group "test" {
|
|
count = 1
|
|
|
|
task "test1" {
|
|
driver = "raw_exec"
|
|
|
|
template {
|
|
data = <<EOH
|
|
foreach ($loopnumber in 1..2147483647) {
|
|
$result=1;foreach ($number in 1..2147483647) {
|
|
$result = $result * $number
|
|
};$result
|
|
}
|
|
EOH
|
|
|
|
destination = "local/factorial.ps1"
|
|
}
|
|
|
|
config {
|
|
command = "powershell"
|
|
args = ["local/factorial.ps1"]
|
|
}
|
|
}
|
|
}
|
|
}
|