postgres_exporter icon indicating copy to clipboard operation
postgres_exporter copied to clipboard

When using multiple DSN, pg_database_size_bytes only return metrics from first DSN

Open rbudiharso opened this issue 9 months ago • 2 comments

What did you do? Install postgres_exporter with multiple postgresql DSN

What did you expect to see? show metric pg_database_size_bytes from all database from all DSN and with server label

What did you see instead? Under which circumstances? Only pg_database_size_bytes from the first DSN in the comma-separated DSN is returned and without server label

Environment

  • System information: Kubernetes 1.28 on AWS EKS

  • postgres_exporter version: prometheus-postgres-exporter-5.1.0 v0.14.0

  • postgres_exporter flags:

  • PostgreSQL version:

    all supported version

  • Logs:

CleanShot 2023-10-16 at 10 12 19@2x

rbudiharso avatar Oct 16 '23 03:10 rbudiharso