Commit 54cf27d
committed
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 superuser1 parent a1e472e commit 54cf27d
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
0 commit comments