More realistic PostgreSQL setup with dedicated users, database, and monitoring#3153
Merged
cyrille-leclerc merged 8 commits intoopen-telemetry:mainfrom Apr 8, 2026
Conversation
…onitoring - 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
…onitoring - 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
ps48
reviewed
Mar 31, 2026
…clerc/opentelemetry-demo into more-realistic-database-setup
…sswords should not be stored in config files.
ps48
approved these changes
Apr 7, 2026
puckpuck
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
More realistic PostgreSQL setup with dedicated users, database, and monitoring
root/oteluusers andoteldatabase with a dedicatedastronomy_dbowned byastronomy_user, keeping the defaultpostgresdatabase untouchedmonitoring_userwithpg_monitorrole for read-only observability access across all databases and schemasmonitoring_userinstead of the superuserpg_stat_statementson all databases viashared_preload_librariesandCREATE EXTENSIONpostgresqltoastronomy-dbfor clarity; updatePOSTGRES_HOSTaccordinglyPOSTGRES_PASSWORDtochangeitfor the default superuserMerge Requirements
For new features contributions, please make sure you have completed the following
essential items:
CHANGELOG.mdupdated to document new feature additionsMaintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.