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
e20d8676
Commit
e20d8676
authored
Jul 10, 2020
by
Qingyu Zhao
Committed by
Achilleas Pipinellis
Jul 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documents for external prometheus server setting
parent
d06f1347
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
doc/administration/high_availability/monitoring_node.md
doc/administration/high_availability/monitoring_node.md
+13
-0
doc/administration/monitoring/prometheus/index.md
doc/administration/monitoring/prometheus/index.md
+6
-0
No files found.
doc/administration/high_availability/monitoring_node.md
View file @
e20d8676
...
@@ -71,6 +71,19 @@ Omnibus:
...
@@ -71,6 +71,19 @@ Omnibus:
1.
Run
`sudo gitlab-ctl reconfigure`
to compile the configuration.
1.
Run
`sudo gitlab-ctl reconfigure`
to compile the configuration.
The next step is to tell all the other nodes where the monitoring node is:
1.
Edit
`/etc/gitlab/gitlab.rb`
, and add, or find and uncomment the following line:
```
ruby
gitlab_rails
[
'prometheus_address'
]
=
'10.0.0.1:9090'
```
Where
`10.0.0.1:9090`
is the IP address and port of the Prometheus node.
1.
Save the file and
[
reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the changes to
take effect.
## Migrating to Service Discovery
## Migrating to Service Discovery
Once monitoring using Service Discovery is enabled with
`consul['monitoring_service_discovery'] = true`
,
Once monitoring using Service Discovery is enabled with
`consul['monitoring_service_discovery'] = true`
,
...
...
doc/administration/monitoring/prometheus/index.md
View file @
e20d8676
...
@@ -145,6 +145,12 @@ To use an external Prometheus server:
...
@@ -145,6 +145,12 @@ To use an external Prometheus server:
gitlab_rails
[
'monitoring_whitelist'
]
=
[
'127.0.0.0/8'
,
'192.168.0.1'
]
gitlab_rails
[
'monitoring_whitelist'
]
=
[
'127.0.0.0/8'
,
'192.168.0.1'
]
```
```
1.
On
**all**
GitLab Rails(Puma/Unicorn, Sidekiq) servers, set the Prometheus server IP address and listen port. For example:
```
ruby
gitlab_rails
[
'prometheus_address'
]
=
'192.168.0.1:9090'
```
1.
To scrape NGINX metrics, you'll also need to configure NGINX to allow the Prometheus server
1.
To scrape NGINX metrics, you'll also need to configure NGINX to allow the Prometheus server
IP. For example:
IP. For example:
...
...
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