Sorry to be a bother again, i included the "pg_stat_statement" in the queries.yml file, had the DBA enable/ install the extension for pg_stat_statements. When i run the postgres_exporter, i see the following messages which i believe indicates that the config is OK(?):
However, on the metrics page, i dont see those metrics being collected, i searched for the following keyworks on the metrics page (to name a few):
pg_stat_statements:
query: " SELECT userid, dbid, queryid, query, calls, total_time, min_time, max_time, mean_time, stddev_time, rows shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time, blk_write_time FROM pg_stat_statements"
metrics:
- userid:
usage: "LABEL"
description: "OID of user who executed the statement"
- dbid:
usage: "LABEL"
description: "OID of database in which the statement was executed"
- queryid:
usage: "LABEL"
description: "Internal hash code, computed from the statement's parse tree"
- query:
usage: "LABEL"
description: "Text of a representative statement"
- calls:
usage: "LABEL"
description: "Number of times executed"
- total_time:
usage: "LABEL"
description: "Total time spent in the statement, in milliseconds"
- min_time:
usage: "LABEL"
description: "Minimum time spent in the statement, in milliseconds"
- max_time:
usage: "LABEL"
description: "Maximum time spent in the statement, in milliseconds"
- mean_time:
usage: "LABEL"
description: "Mean time spent in the statement, in milliseconds"
- stddev_time:
usage: "LABEL"
description: "Population standard deviation of time spent in the statement, in milliseconds"
- rows:
usage: "LABEL"
description: "Total number of rows retrieved or affected by the statement"
- shared_blks_hit:
usage: "LABEL"
description: "Total number of shared block cache hits by the statement"
- shared_blks_read:
usage: "LABEL"
description: "Total number of shared blocks read by the statement"
- shared_blks_dirtied:
usage: "LABEL"
description: "Total number of shared blocks dirtied by the statement"
- shared_blks_written:
usage: "LABEL"
description: "Total number of shared blocks written by the statement"
- local_blks_hit:
usage: "LABEL"
description: "Total number of local block cache hits by the statement"
- local_blks_read:
usage: "LABEL"
description: "Total number of local blocks read by the statement"
- local_blks_dirtied:
usage: "LABEL"
description: "Total number of local blocks dirtied by the statement"
- local_blks_written:
usage: "LABEL"
description: "Total number of local blocks written by the statement"
- temp_blks_read:
usage: "LABEL"
description: "Total number of temp blocks read by the statement"
- temp_blks_written:
usage: "LABEL"
description: "Total number of temp blocks written by the statement"
- blk_read_time:
usage: "LABEL"
description: "Total time the statement spent reading blocks in milliseconds if track_io_timing is enabled otherwise zero"
- blk_write_time:
usage: "LABEL"
description: "Total time the statement spent writing blocks in milliseconds if track_io_timing is enabled otherwise zero"