Skip to content

prober: support reject regexp in TCP/unix query_response - #1646

Open
locker95 wants to merge 1 commit into
prometheus:masterfrom
locker95:feature/tcp-query-response-reject
Open

prober: support reject regexp in TCP/unix query_response#1646
locker95 wants to merge 1 commit into
prometheus:masterfrom
locker95:feature/tcp-query-response-reject

Conversation

@locker95

@locker95 locker95 commented Aug 3, 2026

Copy link
Copy Markdown

For SMTP and friends you sometimes get a definitive failure line (5xx) and just want the probe to stop, rather than spinning until expect times out.

This adds an optional reject regex on each query_response step. While waiting for expect, if a line matches reject the probe fails right away (probe_failed_due_to_regex=1). Documented in CONFIGURATION.md; works for tcp and unix since they share the helper.

Fixes #1527

Allow query_response steps to fail immediately when a line matches a
reject pattern, instead of waiting for expect to time out.

Fixes prometheus#1527

Signed-off-by: Dean Chen <862469039@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFE: Support explicit failure in tcp prober query_response

1 participant