iac/ansible/roles/monitoring/templates/blackbox.yml.j2
Sergei Poljanski 3197f5fc16
Some checks failed
deploy / ansible (push) Has been cancelled
monitoring: probe XMPP c2s with a plain connect
blackbox_exporter matches query_response line by line, and ejabberd
writes its stream features and <proceed/> without newlines, so the
STARTTLS dialogue always timed out and the probe alert fired while
XMPP was fine. Port 5222 gets a TCP connect; the certificate is still
checked through direct TLS on 5223.

Assisted-by: Claude:opus-5-5
2026-11-13 06:59:31 +04:00

27 lines
648 B
Django/Jinja

# Managed by Ansible (role monitoring).
modules:
http_2xx:
prober: http
timeout: 10s
http:
preferred_ip_protocol: ip4
follow_redirects: true
# Up means "answers": 401/403/404 are fine (s3 root, allowlisted UIs)
http_up:
prober: http
timeout: 10s
http:
preferred_ip_protocol: ip4
valid_status_codes: [200, 301, 302, 401, 403, 404]
tls_connect:
prober: tcp
timeout: 10s
tcp:
preferred_ip_protocol: ip4
tls: true
tcp_connect:
prober: tcp
timeout: 10s
tcp:
preferred_ip_protocol: ip4
# XMPP client port: stream header, STARTTLS, then the certificate