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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions docker/all-in-one/opt/postgres_exporter/queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,30 +179,6 @@ auth_users:
usage: "GAUGE"
description: "Number of users in the project db"

auth_stats:
master: true
cache_seconds: 3600
query: |
select
count(*) filter (
where payload ->> 'action' = 'user_invited'
or (payload ->> 'action' in ('user_confirmation_requested', 'user_recovery_requested')
and payload ->> 'actor_username' like '%@%')
) as total_auth_emails,
count(*) filter (
where payload ->> 'action' in ('user_confirmation_requested', 'user_recovery_requested')
and payload ->> 'actor_username' not like '%@%'
) as total_auth_texts
from
auth.audit_log_entries
metrics:
- total_auth_emails:
usage: "COUNTER"
description: "Total number of auth emails sent"
- total_auth_texts:
usage: "COUNTER"
description: "Total number of auth texts sent"

realtime:
master: true
cache_seconds: 60
Expand Down
Loading