DEV Community

Discussion on: Top PostgreSQL monitoring metrics for Prometheus – Includes cheat sheet

Collapse
 
unbated profile image
Unbated

Can you please clarify the "pg_up" metric? Is it only the known labels and values you get when running it natively? In our Grafana/Postgres_exporter setup pg_up finds the instance to be the Docker that runs the exporter. Our target db instance is in AWS/RDS but using pg_up(:5432) doesn't get any results. Is there something in the exporter that can be done? or is it network restrictions (firewalls, VPC peering, Security groups, etc)?

Collapse
 
daviddetorres profile image
David de Torres

Hi,

That metrics should always be present. Are you using the official exporter? (github.com/prometheus-community/po...)

Even if the exporter does not have connection with the database, the metric will exists with value 0.

Collapse
 
eckelon profile image
JA Samitier

Thanks for your comment! Let me come back to you when I return office next week