Skip to content

monitoring: postgres metrics#51

Open
uwedeportivo wants to merge 1 commit into
mainfrom
postgres_metrics
Open

monitoring: postgres metrics#51
uwedeportivo wants to merge 1 commit into
mainfrom
postgres_metrics

Conversation

@uwedeportivo
Copy link
Copy Markdown
Contributor

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

Related to https://github.com/sourcegraph/sourcegraph/pull/6616

--restart=always \
--cpus=1 \
--memory=1g \
-e DATA_SOURCE_NAME="postgresql://sourcegraph:sourcegraphd@pgsql:5432/postgres?sslmode=disable" \
Copy link
Copy Markdown
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

- gitserver-0:6060
- searcher-0:6060
- symbols-0:6060
- postgres-exporter:9187
Copy link
Copy Markdown
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
Copy Markdown
Member

@emidoots emidoots 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

Development

Successfully merging this pull request may close these issues.

2 participants