-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add chinese docker compose quick start md
- Loading branch information
1 parent
5c2bf08
commit 43818e2
Showing
8 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.3 KB
docs/quick-start/docker-compose/asserts/add-jaeger-data-source-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## 启动项目 | ||
|
||
在项目根目录下,执行以下命令启动项目: | ||
|
||
```bash | ||
docker-compose up -d | ||
``` | ||
|
||
启动成功后,可以看到以下容器: | ||
|
||
+ distributor: 提供用于接收 OTLP 数据的 gRPC API | ||
+ jaeger-query: 提供用于接收 Jaeger 查询协议的 HTTP API | ||
+ mysql: 用于存储数据 | ||
+ grafana: 用于展示数据 | ||
|
||
## Trace 数据的发送 | ||
|
||
将 SDK 的 OTLP exporter 配置为 `http://localhost:4317` 即可将数据发送到 distributor。 | ||
|
||
## Trace 数据的查询 | ||
|
||
我们实现了支持 Jaeger 查询协议的 API,因此可以直接在 Grafana 中配置 Jaeger 数据源。 | ||
|
||
访问 http://localhost:3000/ 即可看到grafana的登录页面。用户名和密码都是admin。 | ||
|
||
登录后,点击左侧的菜单,选择 Data Sources,然后点击 Add data source。 | ||
|
||
![](./asserts/add-jaeger-data-source.png) | ||
|
||
![](./asserts/add-jaeger-data-source-2.png) | ||
|
||
选择 Jaeger。 | ||
![](./asserts/add-jaeger-data-source-3.png) | ||
|
||
配置 Jaeger 数据源的 URL 为 http://jaeger-query:5775。 | ||
![](./asserts/add-jaeger-data-source-4.png) | ||
|
||
点击 Save & Test,如果显示如下信息,则说明配置成功。 | ||
![](./asserts/add-jaeger-data-source-5.png) | ||
|
||
这边建议先往 Distributor 发送一些数据,然后再点击 Save & Test,否则会报错。 | ||
![](./asserts/add-jaeger-data-source-error.png) |