Skip to content

Commit

Permalink
sofastack#12 modify readme (sofastack#13)
Browse files Browse the repository at this point in the history
* modify readme
  • Loading branch information
luyiisme authored Jun 5, 2018
1 parent f281417 commit abe37e3
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ SOFALookout 是一个利用多维度的 metrics 对目标系统进行度量和

- 客户端代码编译,进入client子目录,Maven 3.2.5+, JDK Version 1.6+;
- 服务器端代码编译,进入server子目录,Maven 3.2.5+, JDK Version 1.8+;
## 样例工程

样例工程演示了如何快速使用 SOFALookout,[详细可参考](https://github.com/alipay/sofa-lookout/wiki/useguide-samples)

## 贡献
如何参与 SOFALookout [代码贡献](./CONTRIBUTING.md)
Expand Down
19 changes: 18 additions & 1 deletion client/samples/lookout-client-samples-boot/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
启动后访问:http://localhost:8080/metrics
## 这里演示与 SpringBoot Actuator 集成

- 添加依赖

```
<dependency>
<groupId>com.alipay.sofa.lookout</groupId>
<artifactId>lookout-reg-dropwizard</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
</dependency>
```

- 启动后访问:http://localhost:8080/metrics

```
...
http_requests_total.instant-luyideMacBook-Pro.local: 1,
...
```
8 changes: 7 additions & 1 deletion client/samples/lookout-client-samples-java/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
start it, and wait for 2 minutes at least.
Start it, and wait for 2 minutes at least.

Wait the following logs on the console:

```
==> [{"time":"2018-06-05T16:41:00+08:00","tags":{"app":"appName","ip":"10.15...
```
5 changes: 4 additions & 1 deletion client/samples/lookout-client-samples-prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
<version>${lookout.client.version}</version>
</dependency>
```
## 2.启动samples,后可以访问:http://localhost:{com.alipay.sofa.lookout.prometheus.exporter.server.port}

## 2.启动samples,后可以访问:http://localhost:9494

端口可以改变,配置项:`com.alipay.sofa.lookout.prometheus-exporter-server-port`

## 3.可以配合 prometheus 服务查看

Expand Down

0 comments on commit abe37e3

Please sign in to comment.