File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,24 @@ sites:
41
41
42
42
## Running
43
43
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
+ ```
45
62
46
63
## List of exposed metrics
47
64
File renamed without changes.
You can’t perform that action at this time.
0 commit comments