postgres_exporter metrics

31 views
Skip to first unread message

Ken Kato

unread,
Sep 15, 2023, 6:58:26 AM9/15/23
to Postgres Operator
Hi,

I have questions regarding to the postgres_exporter metrics.
It looks like CrunchyData/pgmonitor/postgres_exporter uses prometheus-community/postgres-exporter and add some custom metrics on top of default metrics. However, they have some overlapping metrics such as
  • ccp_stat_bgwriter_* and pg_stat_bgwriter_*
  • ccp_stat_database_* and pg_stat_database_*
pgmonitor uses --disable-default-metrics, but PGO doesn't use this option. (internal/controller/postgrescluster/pgmonitor.go line 282-285)
It seems repetitive and adds a little bit of overhead to Prometheus.
Any reasons for that?

Regards,
Ken Kato

Valerie Clarkson

unread,
Sep 15, 2023, 1:26:56 PM9/15/23
to Ken Kato, Postgres Operator
Hi Ken Kato,

Thanks for pointing this out, we are going to get this better aligned with pgmonitor.  If you have any follow on questions please feel free to reach out to us on Discord.

Regards,
Valerie
Reply all
Reply to author
Forward
0 new messages