Files
charts/bitnami/postgresql/templates/read
Koren Peretz d8d0dfe799 Postgres exporter URI fix (#27734)
* Postgres exporter authenticate to postgres db primary

The postgres exporter is monitoring all the dbs in the postgresql cluster.

The postgres exporter will query by default all the dbs through the db of the username you are using for instance when you use "postgres" user the exporter will query all the dbs through db postgres, when you use "test" user the exporter will query all the dbs through db test.

You able to assign the db you want to query through the URI in the postgres exporter.

Lets say you are using user "test" and there is no db "test", the exporter will not work and the connection will fail.

When using a custom username for the postgres and using the URI in the postgres exporter that currently set, the connection will fall because it will search for a db with that name that might exist or not.

Postgres always have "postgres" db for its internal uses and this helm chart always deploys admin user.

Conclustion: we can use in the URI the postgres db because we are admin and the postgres db exist

Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com>

* Postgres exporter primary URI fix

The postgres exporter is monitoring all the dbs in the postgresql cluster.

The postgres exporter will query by default all the dbs through the db of the username you are using for instance when you use "postgres" user the exporter will query all the dbs through db postgres, when you use "test" user the exporter will query all the dbs through db test.

You able to assign the db you want to query through the URI in the postgres exporter.

Lets say you are using user "test" and there is no db "test", the exporter will not work and the connection will fail.

When using a custom username for the postgres and using the URI in the postgres exporter that currently set, the connection will fall because it will search for a db with that name that might exist or not.

Postgres always have "postgres" db for its internal uses and this helm chart always deploys admin user.

Conclustion: we can use in the URI the postgres db because we are admin and the postgres db exist

Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com>

* Update Chart.yaml

ApiVersion for pipeline

Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update Chart.yaml

Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Koren Peretz <62677694+KorenP1@users.noreply.github.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
2024-07-09 11:37:01 +02:00
..