Skip to content

Commit b96289a

Browse files
burmeciadarora
authored andcommitted
fix: remove auth stats collection from postgres_exporter
1 parent 9e1e0bd commit b96289a

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

docker/all-in-one/opt/postgres_exporter/queries.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -179,30 +179,6 @@ auth_users:
179179
usage: "GAUGE"
180180
description: "Number of users in the project db"
181181

182-
auth_stats:
183-
master: true
184-
cache_seconds: 3600
185-
query: |
186-
select
187-
count(*) filter (
188-
where payload ->> 'action' = 'user_invited'
189-
or (payload ->> 'action' in ('user_confirmation_requested', 'user_recovery_requested')
190-
and payload ->> 'actor_username' like '%@%')
191-
) as total_auth_emails,
192-
count(*) filter (
193-
where payload ->> 'action' in ('user_confirmation_requested', 'user_recovery_requested')
194-
and payload ->> 'actor_username' not like '%@%'
195-
) as total_auth_texts
196-
from
197-
auth.audit_log_entries
198-
metrics:
199-
- total_auth_emails:
200-
usage: "COUNTER"
201-
description: "Total number of auth emails sent"
202-
- total_auth_texts:
203-
usage: "COUNTER"
204-
description: "Total number of auth texts sent"
205-
206182
realtime:
207183
master: true
208184
cache_seconds: 60

0 commit comments

Comments
 (0)