Skip to content

Commit

Permalink
feat: add http_3xx module
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Aug 9, 2023
1 parent 1668b6a commit 6528f4a
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions config/blackbox_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,57 @@ modules:
headers:
User-Agent: prometheus-blackbox-exporter

http_401:
http_2xx_with_idm_ca:
prober: http
timeout: 20s
http:
preferred_ip_protocol: ip4
valid_status_codes:
- 401
headers:
User-Agent: prometheus-blackbox-exporter
tls_config:
ca_file: "/usr/local/share/ca-certificates/idm.c2c.com-ca.crt"

http_401_with_idm_ca:
http_2xx_with_basic_auth_geo2france:
prober: http
timeout: 20s
http:
preferred_ip_protocol: ip4
valid_status_codes:
- 401
headers:
User-Agent: prometheus-blackbox-exporter
tls_config:
ca_file: "/usr/local/share/ca-certificates/idm.c2c.com-ca.crt"
basic_auth:
username: ${GEO2FRANCE_BASIC_AUTH_USERNAME}
password: ${GEO2FRANCE_BASIC_AUTH_PASSWORD}

http_2xx_with_idm_ca:
http_3xx:
prober: http
timeout: 20s
http:
preferred_ip_protocol: ip4
valid_status_codes: [300,301,302,303,304,305,306,307,308]
headers:
User-Agent: prometheus-blackbox-exporter
tls_config:
ca_file: "/usr/local/share/ca-certificates/idm.c2c.com-ca.crt"

http_2xx_with_basic_auth_geo2france:
http_401:
prober: http
timeout: 20s
http:
preferred_ip_protocol: ip4
valid_status_codes:
- 401
headers:
User-Agent: prometheus-blackbox-exporter
basic_auth:
username: ${GEO2FRANCE_BASIC_AUTH_USERNAME}
password: ${GEO2FRANCE_BASIC_AUTH_PASSWORD}

http_401_with_idm_ca:
prober: http
timeout: 20s
http:
preferred_ip_protocol: ip4
valid_status_codes:
- 401
headers:
User-Agent: prometheus-blackbox-exporter
tls_config:
ca_file: "/usr/local/share/ca-certificates/idm.c2c.com-ca.crt"

dns_idm_soa:
prober: dns
Expand Down

0 comments on commit 6528f4a

Please sign in to comment.