Skip to content

Commit c42d5c1

Browse files
classabbyampthe-maldridge
authored andcommitted
services/nomad/monitoring/ssl_exporter: add conf to allow probing self-signed certs
netauth is a self-signed cert, and because we don't have the CA cert available, we can't configure ssl_exporter to use that.
1 parent 508ad0d commit c42d5c1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

services/nomad/monitoring/ssl_exporter.nomad

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@ job "ssl-exporter" {
3333
config {
3434
image = "ribbybibby/ssl-exporter:2.4.0"
3535
ports = ["http"]
36+
args = ["--config.file=/local/conf.yaml"]
37+
}
38+
39+
template {
40+
data = <<EOF
41+
modules:
42+
https:
43+
prober: https
44+
https_insecure:
45+
prober: https
46+
tls_config:
47+
insecure_skip_verify: true
48+
tcp:
49+
prober: tcp
50+
tcp_insecure:
51+
prober: tcp
52+
tls_config:
53+
insecure_skip_verify: true
54+
EOF
55+
destination = "local/conf.yaml"
3656
}
3757
}
3858
}

0 commit comments

Comments
 (0)