Not a Bug
Details
Details
Assignee
Unassigned
UnassignedReporter
Naresh
NareshPriority
Labels
Needs QA
Yes
Needs Doc
Yes
Due date
Feb 12, 2025
Created November 6, 2024 at 4:33 PM
Updated February 12, 2025 at 4:58 PM
Resolved February 12, 2025 at 4:58 PM
I have configured the below custom query in the below path, but I am unable to see the metric in the Explore dashboard.
Path: /usr/local/percona/pmm2/collectors/custom-queries/postgresql/low-resolution/queries-lr.yaml
Forum Ticket: https://forums.percona.com/t/postgresql-custom-query-is-not-working/34390
Below is the custom query,
pg_user_process: query: “SELECT usename as USER, client_addr as IP, COUNT(client_addr) as THREAD_COUNT FROM pg_stat_activity GROUP BY client_addr,usename ORDER BY usename, client_addr” metrics: - list: usage: “GAUGE” description: “Id details” - USER: usage: “LABEL” description: “User Name” - IP: usage: “LABEL” description: “User Client IP” - THREAD_COUNT: usage: “LABEL” description: “no of connections per thread.”