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
f82bcca2
Commit
f82bcca2
authored
Aug 19, 2015
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to client_golang changes
parent
3f552f82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
getting_started.md
content/docs/introduction/getting_started.md
+6
-5
No files found.
content/docs/introduction/getting_started.md
View file @
f82bcca2
...
@@ -152,19 +152,20 @@ to scrape.
...
@@ -152,19 +152,20 @@ to scrape.
The Go client library includes an example which exports fictional RPC latencies
The Go client library includes an example which exports fictional RPC latencies
for three services with different latency distributions.
for three services with different latency distributions.
Ensure you have the
[
Go compiler installed
](
https://golang.org/doc/install
)
.
Download the Go client library for Prometheus and run three of these example
Download the Go client library for Prometheus and run three of these example
processes:
processes:
```
bash
```
bash
# Fetch the client library code and compile example.
# Fetch the client library code and compile example.
git clone https://github.com/prometheus/client_golang.git
git clone https://github.com/prometheus/client_golang.git
cd
client_golang
cd
client_golang
/examples/random
make example_random
go build
# Start 3 example targets in separate terminals:
# Start 3 example targets in separate terminals:
./
example_
random
-listen-address
=
:8080
./random
-listen-address
=
:8080
./
example_
random
-listen-address
=
:8081
./random
-listen-address
=
:8081
./
example_
random
-listen-address
=
:8082
./random
-listen-address
=
:8082
```
```
You should now have example targets listening on http://localhost:8080/metrics,
You should now have example targets listening on http://localhost:8080/metrics,
...
...
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