Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
4c574f0f
Verified
Commit
4c574f0f
authored
6 months ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
document that the postgres exporter is configured automatically
parent
cc52383c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#207320
failed
6 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/postgresql.md
+6
-17
6 additions, 17 deletions
howto/postgresql.md
with
6 additions
and
17 deletions
howto/postgresql.md
+
6
−
17
View file @
4c574f0f
...
...
@@ -1663,28 +1663,17 @@ PostgreSQL keeps log files in `/var/log/postgresql/`, one per
form of SQL queries. The log rotation policy is the one set by the
Debian package and keeps logs for 10 weeks.
A
[
Prometheus
](
howto/prometheus
)
exporter is installed on the
[
GitLab
](
howto/gitlab
)
server by
the GitLab omnibus package, but metrics are not collected on other
Prometheus servers. The
[
Grafana
](
howto/grafana
)
server has a handful of
dashboards in various working states:
[
Prometheus
](
howto/prometheus
)
monitors the PosgreSQL servers through the
[
PostgreSQL
exporter
](
)
deployed by Puppet through the
`profile::prometheus::postgres_exporter`
class.
The
[
Grafana
](
howto/grafana
)
server has a handful of dashboards in various working
states:
*
[
Postgres Overview
](
https://grafana.torproject.org/d/wGgaPlciz/postgres-overview
)
- basic dashboard with minimal metrics
*
[
PostgreSQL Overview (Percona)
](
https://grafana.torproject.org/d/IvhES05ik/postgresql-overview-percona
)
- mostly working
*
[
GitLab Omnibus - PostgreSQL
](
https://grafana.torproject.org/d/c_LJgXfmk/gitlab-omnibus-postgresql
)
- broken
We do have a Puppet class (
`profile::prometheus::postgres_exporter`
which can monitor PostgreSQL servers, but it is not deployed on all
hosts. This is because there is still a manual step in the
configuration of the exporter. See "installation" above.
It would also be preferable if that procedure was automated in Puppet,
but that requires haggling with the
`postgresql`
module which we do
not actually use, currently. It does not directly conflict with our
`postgres`
module, but it does rewrite the
`pg_hba.conf`
and
`postges.conf`
. If we do eventually fix this oddity, know that we
considered using
`postgresql::server::grant`
, but it might be better
to call
`postgresql_psql`
directly.
Note that there is a program called
[
pgstatsmon
](
https://github.com/joyent/pgstatsmon
)
which can provide
very detailed information about the state of a PostgreSQL database,
see
[
this blog post for details
](
https://www.davepacheco.net/blog/2019/visualizing-postgresql-vacuum-progress/
)
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment