BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
419bbbf8
Commit
419bbbf8
authored
Feb 09, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add info on changing the default address/port Prometheus listens on
Reported in
https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1905
[ci skip]
parent
614f3719
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
index.md
doc/administration/monitoring/prometheus/index.md
+24
-0
No files found.
doc/administration/monitoring/prometheus/index.md
View file @
419bbbf8
...
...
@@ -46,6 +46,29 @@ By default, Prometheus will run as the `gitlab-prometheus` user and listen on
has been enabled, it will automatically be set up as a monitoring target for
Prometheus.
## Changing the port Prometheus listens on
>**Note:**
The following change was added in
[
GitLab Omnibus 8.17
][
1261
]
. Although possible,
it's not recommended to change the default address and port Prometheus listens
on as this might affect or conflict with other services running on the GitLab
server. Proceed at your own risk.
To change the address/port that Prometheus listens on:
1.
Edit
`/etc/gitlab/gitlab.rb`
1.
Find and add/uncomment the following line:
```ruby
prometheus['listen_address'] = 'localhost:9090'
```
Replace `localhost:9090` with the address/port you want Prometheus to
listen on.
1.
Save the file and
[
reconfigure GitLab
][
reconfigure
]
for the changes to
take effect
## Viewing performance metrics
After you have
[
enabled Prometheus
](
#configuring-prometheus
)
, you can visit
...
...
@@ -121,3 +144,4 @@ The GitLab monitor exporter allows you to measure various GitLab metrics.
[
scrape-config
]:
https://prometheus.io/docs/operating/configuration/#%3Cscrape_config%3E
[
reconfigure
]:
../../restart_gitlab.md#omnibus-gitlab-reconfigure
[
#27069
]:
https://gitlab.com/gitlab-org/gitlab-ce/issues/27069
[
1261
]:
https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1261
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