Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
d95c6cb8
Commit
d95c6cb8
authored
Jul 01, 2015
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #134 from prometheus/fix-yaml-example
Add back Prometheus target to last config example.
parents
1b1a7c4a
2236375a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
getting_started.md
content/docs/introduction/getting_started.md
+11
-2
No files found.
content/docs/introduction/getting_started.md
View file @
d95c6cb8
...
...
@@ -188,8 +188,8 @@ endpoints to a single job, adding extra labels to each group of targets. In
this example, we will add the
`group="production"`
label to the first group of
targets, while adding
`group="canary"`
to the second.
To achieve this, add the following job definition to
your
`prometheus.yml`
and
restart your Prometheus instance:
To achieve this, add the following job definition to
the
`scrape_configs`
section in your
`prometheus.yml`
and
restart your Prometheus instance:
```
scrape_configs:
...
...
@@ -257,6 +257,15 @@ rule_files:
- 'prometheus.rules'
scrape_configs:
- job_name: 'prometheus'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_timeout: 10s
target_groups:
- targets: ['localhost:9090']
- job_name: 'example-random'
scrape_interval: 5s
...
...
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