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

fix: remove auth stats collection from postgres_exporter #908

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

burmecia
Copy link
Member

What kind of change does this PR introduce?

This PR is to remove auth stats collection from postgres_exporter, which caused performance issue on user's db with a large auth.audit_log_entries table. Below 2 metrics will be removed after this PR:

total_auth_emails
total_auth_texts

Context: https://supabase.slack.com/archives/C022071RB2L/p1709132413873409

HubSpot ticket: https://app.hubspot.com/live-messages/19953346/inbox/6610456592#comment

What is the current behavior?

This regular stats collection query caused high cpu spikes on user's db, which has a large auth.audit_log_entries table.

What is the new behavior?

Removed that stats collection query should remove high cpu spikes it casued.

Additional context

Also raised same PR on infra repo: https://github.com/supabase/infrastructure/pull/17391

@burmecia burmecia requested a review from a team as a code owner March 15, 2024 03:45
@darora darora merged commit b96289a into develop Mar 20, 2024
8 checks passed
@darora darora deleted the fix/auth-stats-collection branch March 20, 2024 05:16
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.

2 participants