Skip to content

Commit b61f80e

Browse files
committed
fix: set limit to 1
1 parent 6734294 commit b61f80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/pg_top_queries_execution.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var (
6666
calls
6767
FROM pg_stat_statements
6868
ORDER BY total_seconds DESC
69-
LIMIT 100;`
69+
LIMIT 1;`
7070
)
7171

7272
func (PGStatTopQueriesExecutionTime) Update(ctx context.Context, instance *instance, ch chan<- prometheus.Metric) error {

0 commit comments

Comments
 (0)