Skip to content

Commit c82d510

Browse files
committed
doc: update reamde
1 parent bb4f452 commit c82d510

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,24 @@ sites:
4141

4242
## Running
4343

44-
TODO
44+
You can use a Docker image to run the application.
45+
The image doesn't contain configuration file. You can provide it
46+
as a mount like in the example below:
47+
48+
```
49+
$ docker run -v `pwd`/config:/etc/sitest tpimages/sitest:latest
50+
51+
2018/01/01 11:11:11 Config loaded:
52+
2018/01/01 11:11:11 - site: http://example.com/ params: {1m0s}
53+
2018/01/01 11:11:11 - site: https://golang.org params: {15s}
54+
2018/01/01 11:11:11 - site: https://api.myip.com/ params: {1m0s}
55+
2018/01/01 11:11:11 Start querying sites...
56+
2018/01/01 11:11:11 [https://golang.org] slow start, sleep 14s
57+
2018/01/01 11:11:11 [http://example.com/] slow start, sleep 36s
58+
2018/01/01 11:11:11 [https://api.myip.com/] slow start, sleep 39s
59+
2018/01/01 11:11:25 [https://golang.org] querying...
60+
2018/01/01 11:11:25 [https://golang.org] success, result: {StatusCode:200 Length:8099 Duration:423.640439ms Hash:13824383691894627592}
61+
```
4562

4663
## List of exposed metrics
4764

File renamed without changes.

0 commit comments

Comments
 (0)