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]>
@electron0zero
Copy link
Member

Hi, we are looking to get #1441 over finish line get that merged. once #1441 is merged, you should be able to configure blackbox exporter to ping PostgreSQL with TCP prober.

I will close this PR, please feel free to comment or reopen if you think #1441 will not work for this use-case.

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

3 participants