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

probe and diagnostic endpoints #763

Merged
merged 15 commits into from
Dec 19, 2024
Merged

Conversation

ericlinagora
Copy link
Contributor

@ericlinagora ericlinagora commented Dec 8, 2024

basic lifecycle probes for kubes and an endpoint for diagnosing mem leaks

missing tests for av, message queue, possibly sso

@ericlinagora ericlinagora linked an issue Dec 8, 2024 that may be closed by this pull request
@ericlinagora ericlinagora force-pushed the 762-probe-and-diagnostic-endpoints branch from d27b2f9 to 932aa55 Compare December 8, 2024 22:08
@ericlinagora ericlinagora force-pushed the 762-probe-and-diagnostic-endpoints branch from 932aa55 to dab4d0e Compare December 8, 2024 22:12
case TServiceDiagnosticDepth.stats_deep:
return {
ok: true,
databases: (await this.client.query("select * from pg_stat_database")).rows,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are running this query not from database owner, your user should have permissions to pg_stat_database, if it's possible it would be great to catch this exception here, and translate it explicitly to clients error

@ericlinagora ericlinagora force-pushed the 762-probe-and-diagnostic-endpoints branch from 12ff9ae to 633f8ff Compare December 12, 2024 03:34
@ericlinagora ericlinagora added this to the v1.0.6 milestone Dec 13, 2024
@shepilov shepilov merged commit ffa0902 into main Dec 19, 2024
7 checks passed
@shepilov shepilov deleted the 762-probe-and-diagnostic-endpoints branch December 19, 2024 13:25
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.

Probe and diagnostic endpoints
2 participants