postgres_exporter icon indicating copy to clipboard operation
postgres_exporter copied to clipboard

Global query (SELECT version();) is being executed per datname

Open adivinho opened this issue 3 years ago • 0 comments

What did you do? Exporter is run with the discover the databases flag

What did you expect to see? The query would be run only once for the database postgres

What did you see instead? Under which circumstances? The query is run for each discovered database Screenshot_20210430_190419

Environment

  • System information: Linux 4.14.209-160.339.amzn2.x86_64 x86_64

  • postgres_exporter version: postgres_exporter 0.0.1-rev (built with go1.15.8)

  • postgres_exporter flags:

--auto-discover-databases 
--exclude-databases=template0,template1,postgres
  • PostgresSQL version: 12.6.0

Screenshot_20210430_190438

adivinho avatar Apr 30 '21 16:04 adivinho