File tree 1 file changed +6
-6
lines changed
build/pluto/prometheus/exporters
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
{
6
6
module ,
7
7
targets ,
8
- job_name ? "blackbox- ${ module } " ,
8
+ job_suffix ? "" ,
9
9
} :
10
10
{
11
- inherit job_name ;
11
+ job_name = "blackbox- ${ module } ${ job_suffix } " ;
12
12
metrics_path = "/probe" ;
13
13
params = {
14
14
module = [ module ] ;
75
75
# From https://github.com/prometheus/blackbox_exporter/blob/53e78c2b3535ecedfd072327885eeba2e9e51ea2/example.yml#L120-L133
76
76
modules . smtp_starttls = {
77
77
prober = "tcp" ;
78
- timeout = "5s " ;
78
+ timeout = "10s " ;
79
79
tcp = {
80
80
query_response = [
81
81
{ expect = "^220" ; }
122
122
# https://github.com/NixOS/infra/issues/485
123
123
( mkStaticProbe {
124
124
module = "smtp_starttls" ;
125
- job_name = "smtp_starttls_umbriel " ;
126
- targets = [ "umbriel.nixos.org" ] ;
125
+ job_suffix = "_umbriel " ;
126
+ targets = [ "umbriel.nixos.org:25 " ] ;
127
127
} )
128
128
( mkDnsSdProbe "smtp_starttls" {
129
129
names = [
162
162
{
163
163
alert = "MxUnreachable" ;
164
164
expr = ''
165
- probe_success{job="blackbox-smtp_starttls"} == 0
165
+ probe_success{job=~ "blackbox-smtp_starttls.* "} == 0
166
166
'' ;
167
167
for = "15m" ;
168
168
labels . severity = "warning" ;
You can’t perform that action at this time.
0 commit comments