@Roma_Novikov I see no problems in the log file, and in addition to this query, other custom queries that are PMM default queries are also not working.
Hi @Naresh9999
I mean that your custom query is incorrect,
- list:
usage: “GAUGE”
description: “Id details”
doesn’t exist in your query
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”
so postgres_exporter can’t extract it from result and can’t create metric because of that.