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
dd8b59ed
Commit
dd8b59ed
authored
Jan 27, 2015
by
juliusv
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from mjkelly/random_example2
Update 'random-example' section.
parents
7adf8fbe
4911fa70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
getting_started.md
content/docs/introduction/getting_started.md
+8
-8
No files found.
content/docs/introduction/getting_started.md
View file @
dd8b59ed
...
...
@@ -157,14 +157,14 @@ processes:
```
bash
# Fetch the client library code and compile example.
git clone
git@github.com:/prometheus/client_golang
git clone
https://github.com/prometheus/client_golang.git
cd
client_golang
make
random_example
make
example_random
# Start 3 example targets in separate terminals:
./
random_example
-listen-address
=
:8080
./
random_example
-listen-address
=
:8081
./
random_example
-listen-address
=
:8082
./
example_random
-listen-address
=
:8080
./
example_random
-listen-address
=
:8081
./
example_random
-listen-address
=
:8082
```
You should now have example targets listening on http://localhost:8080/metrics,
...
...
@@ -173,7 +173,7 @@ http://localhost:8081/metrics, and http://localhost:8082/metrics.
## Configuring Prometheus to monitor the sample targets
Now we'll configure Prometheus to scrape these new targets. Let's group all
three endpoints into one job called
`
random-example
`
. However, imagine that the
three endpoints into one job called
`
example-random
`
. However, imagine that the
first two endpoints are production targets, while the third one represents a
canary instance. To model this in Prometheus, we can add several groups of
endpoints to a single job, adding extra labels to each group of targets. In
...
...
@@ -185,7 +185,7 @@ restart your Prometheus instance:
```
job: {
name: "
random-example
"
name: "
example-random
"
scrape_interval: "5s"
# The "production" targets for this job.
...
...
@@ -263,7 +263,7 @@ global: {
}
job: {
name: "
random-example
"
name: "
example-random
"
scrape_interval: "5s"
# The "production" targets for this job.
...
...
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