Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collecting GSSAPI statistics #119

Open
CHERTS opened this issue Mar 11, 2025 · 0 comments
Open

Collecting GSSAPI statistics #119

CHERTS opened this issue Mar 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@CHERTS
Copy link
Owner

CHERTS commented Mar 11, 2025

Is your feature request related to a problem? Please describe.
It is necessary to collect the simplest statistics about GSSAPI:

  • Number of encrypted DB connections
  • Number of GSSAPI authenticated DB connections
  • Number of DB connections with delegated GSSAPI credentials

Describe the solution you'd like
Implement new postgres/gssapi collector

Number of encrypted DB connections:

SELECT COUNT(*) FROM pg_stat_gssapi 
JOIN pg_stat_activity ON pg_stat_gssapi.pid = pg_stat_activity.pid
WHERE encrypted = 't' AND datname IS NOT NULL;

Number of GSSAPI authenticated DB connections:

SELECT COUNT(*) FROM pg_stat_gssapi 
JOIN pg_stat_activity ON pg_stat_gssapi.pid = pg_stat_activity.pid 
WHERE gss_authenticated = 't' AND datname IS NOT NULL;

Number of DB connections with delegated GSSAPI credentials:

SELECT COUNT(*) FROM pg_stat_gssapi 
JOIN pg_stat_activity ON pg_stat_gssapi.pid = pg_stat_activity.pid 
WHERE credentials_delegated = 't' AND datname IS NOT NULL;
@CHERTS CHERTS added the enhancement New feature or request label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant