Skip to content

Commit

Permalink
[#122] Metric pg_stat_user_functions is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperpedersen committed Jan 18, 2024
1 parent 5d34858 commit cd4baed
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions contrib/yaml/postgresql-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ metrics:
- queries:
- query: SELECT
funcname,
rows,
calls,
self_time,
total_time
FROM pg_stat_user_functions;
Expand Down Expand Up @@ -647,4 +647,4 @@ metrics:
name: relname
tag: stat_all_indexes
sort: data
collector: pg_stat_all_indexes
collector: pg_stat_all_indexes
4 changes: 2 additions & 2 deletions contrib/yaml/postgresql-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ metrics:
- queries:
- query: SELECT
funcname,
rows,
calls,
self_time,
total_time
FROM pg_stat_user_functions;
Expand Down Expand Up @@ -700,4 +700,4 @@ metrics:
description: Time since last message received from WAL sender
tag: pg_wal_last_received
collector: wal_last_received
server: replica
server: replica
4 changes: 2 additions & 2 deletions contrib/yaml/postgresql-12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ metrics:
- queries:
- query: SELECT
funcname,
rows,
calls,
self_time,
total_time
FROM pg_stat_user_functions;
Expand Down Expand Up @@ -806,4 +806,4 @@ metrics:
description: pg_stat_database_checksum_failures
tag: pg_stat_database
collector: stat_db
sort: data
sort: data
4 changes: 2 additions & 2 deletions contrib/yaml/postgresql-13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ metrics:
- queries:
- query: SELECT
funcname,
rows,
calls,
self_time,
total_time
FROM pg_stat_user_functions;
Expand Down Expand Up @@ -877,4 +877,4 @@ metrics:
type: label
tag: pg_stat_statements_wal_bytes
sort: data
collector: stat_statements_wal_bytes
collector: stat_statements_wal_bytes
4 changes: 2 additions & 2 deletions contrib/yaml/postgresql-14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ metrics:
- queries:
- query: SELECT
funcname,
rows,
calls,
self_time,
total_time
FROM pg_stat_user_functions;
Expand Down Expand Up @@ -1056,4 +1056,4 @@ metrics:
type: gauge
description: pg_stat_database_sessions_killed
tag: pg_stat_database
collector: stat_db
collector: stat_db
4 changes: 2 additions & 2 deletions contrib/yaml/postgresql-15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ metrics:
- queries:
- query: SELECT
funcname,
rows,
calls,
self_time,
total_time
FROM pg_stat_user_functions;
Expand Down Expand Up @@ -1078,4 +1078,4 @@ metrics:
- type: counter
description: Seconds from last WAL prefetch stats reset.
tag: pg_wal_prefetch_reset
collector: wal_prefetch_reset
collector: wal_prefetch_reset
4 changes: 2 additions & 2 deletions contrib/yaml/postgresql-16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ metrics:
- queries:
- query: SELECT
funcname,
rows,
calls,
self_time,
total_time
FROM pg_stat_user_functions;
Expand Down Expand Up @@ -1220,4 +1220,4 @@ metrics:
name: relname
tag: pg_stat_all_indexes
sort: data
collector: stat_all_indexes
collector: stat_all_indexes
2 changes: 1 addition & 1 deletion src/include/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ extern "C" {
" - queries:\n" \
" - query: SELECT\n" \
" funcname,\n" \
" rows,\n" \
" calls,\n" \
" self_time,\n" \
" total_time\n" \
" FROM pg_stat_user_functions;\n" \
Expand Down

0 comments on commit cd4baed

Please sign in to comment.