Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

uwedeportivo
Copy link
Contributor

Exposes Prometheus target postgres_exporter that publishes Postgres metrics of an associated Postgres instance.

Related to sourcegraph/sourcegraph#6616

--restart=always \
--cpus=1 \
--memory=1g \
-e DATA_SOURCE_NAME="postgresql://sourcegraph:sourcegraphd@pgsql:5432/postgres?sslmode=disable" \
Copy link
Member

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
Copy link
Member

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

Copy link
Member

@slimsag slimsag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requesting some changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants