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
b9578406
Commit
b9578406
authored
Nov 07, 2019
by
Wei-Meng Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document prometheus scrape_configs
parent
3c8f5a86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
doc/administration/monitoring/prometheus/index.md
doc/administration/monitoring/prometheus/index.md
+25
-0
No files found.
doc/administration/monitoring/prometheus/index.md
View file @
b9578406
...
...
@@ -78,6 +78,31 @@ To change the address/port that Prometheus listens on:
1.
Save the file and
[
reconfigure GitLab
][
reconfigure
]
for the changes to
take effect
### Adding custom scrape configs
You can configure additional scrape targets for the GitLab Omnibus-bundled
Prometheus by editing
`prometheus['scrape_configs']`
in
`/etc/gitlab/gitlab.rb`
using the
[
Prometheus scrape target configuration
](
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#%3Cscrape_config%3E
)
syntax.
Here is an example configuration to scrape
`http://1.1.1.1:8060/probe?param_a=test¶m_b=additional_test`
:
```
ruby
prometheus
[
'scrape_configs'
]
=
[
{
'job_name'
:
'custom-scrape'
,
'metrics_path'
:
'/probe'
,
'params'
=>
{
'param_a'
=>
[
'test'
],
'param_b'
=>
[
'additional_test'
]
},
'static_configs'
=>
[
'targets'
=>
[
'1.1.1.1:8060'
],
],
},
]
```
### Using an external Prometheus server
NOTE:
**Note:**
...
...
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