Replies: 4 comments 8 replies
-
use the |
Beta Was this translation helpful? Give feedback.
-
server: postgres: collector: includeDatabase: excludeDatabase: constLabels:
[Service] CPUQuota=10% [Install]
Problem The /metrics endpoint does not contain any pg_stat_monitor_, pg_up, or pg_exporter_ metrics. pg_exporter --config=/etc/pg_exporter/pg_exporter_pg-1.yml --log.level=debug |
Beta Was this translation helpful? Give feedback.
-
There's no |
Beta Was this translation helpful? Give feedback.
-
Is your pg_stat_monitor collector generated by vibe coding tools? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We are configuring pg_exporter based on the Pigsty documentation to monitor PostgreSQL.
We are using the latest version of vonng/pg_exporter.
The pg_exporter_pg-1.yml configuration is correct, and the collector/*.yml files are standard, without any custom modifications.
What has been configured:
pg_exporter is running as a systemd service
collector/.yml files were copied from the official vonng/pg_exporter repository
queries: is set as - file: collector/.yml
Connection to the PostgreSQL database works (pg_up = 1)
Some basic metrics appear (pg_up, pg_exporter_*), however...
The issue:
The collections from collector/.yml are not being loaded, specifically:
Metrics like pg_stat_database, pg_stat_activity, pg_stat_monitor, etc. are missing
In journalctl logs we see: metrics count: 0, installed: includeDatabase, excludeDatabase, but no mention of pg_stat_ collections
collector_dir path and queries: section are verified - no YAML parsing errors
We have already tried:
Validating all YAML files -syntax is correct
Testing pg_exporter with a minimal config
Restarting the service and checking logs but metrics from collector/.yml do not appear
Could you please help us identify why the metrics are not being loaded, and how to correctly activate pg_stat_ and other collections?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions