Skip to content

Commit 54cf27d

Browse files
More realistic PostgreSQL setup with dedicated users, database, and monitoring
- Replace the generic `root`/`otelu` users and `otel` database with a dedicated `astronomy_db` owned by `astronomy_user`, keeping the default `postgres` database untouched - Add `monitoring_user` with `pg_monitor` role for read-only observability access across all databases and schemas - Switch OTel Collector postgresql receiver to `monitoring_user` instead of the superuser - Enable `pg_stat_statements` on all databases via `shared_preload_libraries` and `CREATE EXTENSION` - Rename the Compose service and container from `postgresql` to `astronomy-db` for clarity; update `POSTGRES_HOST` accordingly - Set `POSTGRES_PASSWORD` to `changeit` for the default superuser
1 parent a1e472e commit 54cf27d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ the release.
77

88
## Unreleased
99

10+
* [postgresql] More realistic PostgreSQL setup: replace generic `root`/`otelu` users
11+
and `otel` database with dedicated `astronomy_db` owned by `astronomy_user`;
12+
add `monitoring_user` with `pg_monitor` role for the OTel Collector receiver;
13+
enable `pg_stat_statements` on all databases; rename Compose service and
14+
container to `astronomy-db`
15+
([#3153](https://github.com/open-telemetry/opentelemetry-demo/pull/3153))
1016
* [accounting] fix memory leak with dbcontext
1117
([#2876](https://github.com/open-telemetry/opentelemetry-demo/pull/2876))
1218
* [chore] Upgrade OTel Collector to v0.145.0 with :warning: breaking change:

0 commit comments

Comments
 (0)