Skip to content

Conversation

carnerito
Copy link

Adds a new postgres_ssl_request option to the TCP module configuration. When enabled, the prober sends a PostgreSQL-specific SSLRequest message before initiating a TLS handshake. This allows the TCP prober to connect to PostgreSQL servers that expect protocol negotiation prior to starting TLS.

This change enables monitoring of PostgreSQL TLS sockets using the standard tcp prober.

Reference: https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-SSL

Fixes: #801

Adds a new `postgres_ssl_request` option to the TCP module configuration. When enabled,
the prober sends a PostgreSQL-specific SSLRequest message before initiating a TLS handshake.
This allows the TCP prober to connect to PostgreSQL servers that expect protocol negotiation
prior to starting TLS.

This change enables monitoring of PostgreSQL TLS sockets using the standard `tcp` prober.

Reference: https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-SSL

Fixes: prometheus#801

Signed-off-by: boris.petrovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to scrape Postgres cert metrics
2 participants