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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
9bf740f7
Commit
9bf740f7
authored
Apr 16, 2019
by
Cindy Pallares
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update external prometheus config
Updated to include missing metrics: * GitLab Workhorse * Nginx * Sidekiq
parent
b0c0f81d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
doc/administration/monitoring/prometheus/index.md
doc/administration/monitoring/prometheus/index.md
+16
-2
No files found.
doc/administration/monitoring/prometheus/index.md
View file @
9bf740f7
...
...
@@ -96,13 +96,15 @@ To use an external Prometheus server:
1.
Set each bundled service's
[
exporter
](
#bundled-software-metrics
)
to listen on a network address, for example:
```ruby
```ruby
gitlab_monitor['listen_address'] = '0.0.0.0'
sidekiq['listen_address'] = '0.0.0.0'
gitlab_monitor['listen_port'] = '9168'
gitaly['prometheus_listen_addr'] = "0.0.0.0:9236"
node_exporter['listen_address'] = '0.0.0.0:9100'
redis_exporter['listen_address'] = '0.0.0.0:9121'
postgres_exporter['listen_address'] = '0.0.0.0:9187'
gitaly['prometheus_listen_addr'] = "0.0.0.0:9236"
gitlab_workhorse['prometheus_listen_addr'] = "0.0.0.0:9229"
```
1.
Install and set up a dedicated Prometheus instance, if necessary, using the
[
official installation instructions
](
https://prometheus.io/docs/prometheus/latest/installation/
)
.
...
...
@@ -112,6 +114,18 @@ To use an external Prometheus server:
gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8', '192.168.0.1']
```
1.
To scrape nginx metrics, you'll also need to configure nginx to allow the Prometheus server
IP. For example:
```ruby
nginx['status']['options'] = {
"server_tokens" => "off",
"access_log" => "off",
"allow" => "192.168.0.1",
"deny" => "all",
}
```
1.
[
Reconfigure GitLab
][
reconfigure
]
to apply the changes
1.
Edit the Prometheus server's configuration file.
1.
Add each node's exporters to the Prometheus server's
...
...
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