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
0054878e
Commit
0054878e
authored
Jan 26, 2015
by
juliusv
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17 from brian-brazil/clarify
Make it clear what the full config is.
parents
3c9399bb
b0af6d9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
getting_started.md
content/docs/introduction/getting_started.md
+28
-3
No files found.
content/docs/introduction/getting_started.md
View file @
0054878e
...
...
@@ -246,8 +246,8 @@ job_service:rpc_durations_microseconds_count:avg_rate5m = avg(rate(rpc_durations
```
To make Prometheus pick up this new rule, add a
`rule_files`
statement to the
global configuration section in your
`prometheus.conf`
. The
global section
should now
look like this:
global configuration section in your
`prometheus.conf`
. The
config should now
look like this:
```
# Global default settings.
...
...
@@ -266,7 +266,32 @@ global: {
rule_file: "prometheus.rules"
}
[...]
job: {
name: "random-example"
scrape_interval: "5s"
# The "production" targets for this job.
target_group: {
target: "http://localhost:8080/metrics"
target: "http://localhost:8081/metrics"
labels: {
label: {
name: "group"
value: "production"
}
}
}
# The "canary" targets for this job.
target_group: {
target: "http://localhost:8082/metrics"
labels: {
label: {
name: "group"
value: "canary"
}
}
}
}
```
Restart Prometheus with the new configuration and verify that a new time series
...
...
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