Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
228f7060
Commit
228f7060
authored
Dec 13, 2019
by
Marcin Sedlak-Jakubowski
Committed by
Achilleas Pipinellis
Dec 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove link identifiers
Per
https://docs.gitlab.com/ee/development/documentation/styleguide.html#links
parent
9f91a1af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
doc/administration/monitoring/prometheus/postgres_exporter.md
...administration/monitoring/prometheus/postgres_exporter.md
+11
-17
No files found.
doc/administration/monitoring/prometheus/postgres_exporter.md
View file @
228f7060
# Postgre
s e
xporter
# Postgre
SQL Server E
xporter
>**Note:**
>**Note:**
Available since
[
Omnibus GitLab 8.17
]
[
1131
]
. For installations from source
Available since
[
Omnibus GitLab 8.17
]
(
https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1131
)
.
you'
ll have to install and configure it yourself.
For installations from source you wi
ll have to install and configure it yourself.
The [
postgres exporter] allows you to measure
various PostgreSQL metrics.
The
[
PostgreSQL Server Exporter
](
https://github.com/wrouesnel/postgres_exporter
)
allows you to export
various PostgreSQL metrics.
To enable the
postgres e
xporter:
To enable the
PostgreSQL Server E
xporter:
1.
[
Enable Prometheus
](
index.md#configuring-prometheus
)
.
1.
[
Enable Prometheus
](
index.md#configuring-prometheus
)
.
1.
Edit
`/etc/gitlab/gitlab.rb`
and enable
`postgres_exporter`
:
1.
Edit
`/etc/gitlab/gitlab.rb`
and enable
`postgres_exporter`
:
...
@@ -16,23 +16,22 @@ To enable the postgres exporter:
...
@@ -16,23 +16,22 @@ To enable the postgres exporter:
```
```
NOTE:
**Note:**
NOTE:
**Note:**
If PostgreSQL is configured on a separate node, make sure that the local
If PostgreSQL
Server Exporter
is configured on a separate node, make sure that the local
address is
[
listed in `trust_auth_cidr_addresses`
](
../../high_availability/database.md#network-information
)
or the
address is
[
listed in `trust_auth_cidr_addresses`
](
../../high_availability/database.md#network-information
)
or the
exporter will not be able to connect to the database.
exporter will not be able to connect to the database.
1.
Save the file and
[
reconfigure GitLab
]
[
reconfigure
]
for the changes to
1.
Save the file and
[
reconfigure GitLab
]
(
../../restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the changes to
take effect.
take effect.
Prometheus will now automatically begin collecting performance data from
Prometheus will now automatically begin collecting performance data from
the
postgres e
xporter exposed under
`localhost:9187`
.
the
PostgreSQL Server E
xporter exposed under
`localhost:9187`
.
## Advanced configuration
## Advanced configuration
In most cases, Postgre
s e
xporter will work with the defaults and you should not
In most cases, Postgre
SQL Server E
xporter will work with the defaults and you should not
need to change anything.
need to change anything.
The following configuration options can be used to further customize the
To further customize the PostgreSQL Server Exporter, use the following configuration options:
Postgres exporter:
1.
Edit
`/etc/gitlab/gitlab.rb`
:
1.
Edit
`/etc/gitlab/gitlab.rb`
:
...
@@ -54,11 +53,6 @@ Postgres exporter:
...
@@ -54,11 +53,6 @@ Postgres exporter:
postgres_exporter
[
'sslrootcert'
]
=
'ssl-root.crt'
# The location of the root certificate file. The file must contain PEM encoded data.
postgres_exporter
[
'sslrootcert'
]
=
'ssl-root.crt'
# The location of the root certificate file. The file must contain PEM encoded data.
```
```
1.
Save the file and
[
reconfigure GitLab
]
[
reconfigure
]
for the changes to take effect.
1.
Save the file and
[
reconfigure GitLab
]
(
../../restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the changes to take effect.
[
← Back to the main Prometheus page
](
index.md
)
[
← Back to the main Prometheus page
](
index.md
)
[
1131
]:
https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1131
[
postgres exporter
]:
https://github.com/wrouesnel/postgres_exporter
[
prometheus
]:
https://prometheus.io
[
reconfigure
]:
../../restart_gitlab.md#omnibus-gitlab-reconfigure
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment