-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monitoring: postgres metrics #51
base: main
Are you sure you want to change the base?
Conversation
--restart=always \ | ||
--cpus=1 \ | ||
--memory=1g \ | ||
-e DATA_SOURCE_NAME="postgresql://sourcegraph:sourcegraphd@pgsql:5432/postgres?sslmode=disable" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uwedeportivo Can a user specify PG* variables here individually instead of a DSN? Composing the DSN requires hard-coding the password or some weird trickery if it contains values that need to be URL-encoded
I imagine the same would be true in deploy-sourcegraph; we should probably just use the PG* variables mirroring the frontend
@@ -21,3 +21,5 @@ | |||
- gitserver-0:6060 | |||
- searcher-0:6060 | |||
- symbols-0:6060 | |||
- postgres-exporter:9187 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should go below lsif-server on line 18; the area you put it are for entries that must be duplicated for multiple replicas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requesting some changes
Exposes Prometheus target postgres_exporter that publishes Postgres metrics of an associated Postgres instance.
Related to https://github.com/sourcegraph/sourcegraph/pull/6616