Update log-collection.md (#177)

This commit is contained in:
ethfoo 2023-07-19 20:01:44 +08:00 committed by GitHub
parent aeed47971a
commit 8bd144bb82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 9 deletions

View File

@ -16,24 +16,19 @@
针对非Kubernetes的主机场景只是少了LogConfig CRD配置下发的步骤其余类似
## Loggie dashboard
## Loggie Terminal
在Kubernetes的场景下目前Loggie提供了一个基于terminal的可交互式dashboard可以更好的帮助我们便捷的排查问题。
**进入dashboard**
**进入Terminal**
- 找到任意一个Loggie Pod
```
kubectl -nloggie get po -owide
```
- 进入其中一个Loggie Pod
- 进入其中一个Loggie Pod并执行loggie inspect子命令进入terminal
```
kubectl -nloggie exec -it ${podName} bash
```
- 运行dashboard
```
./loggie inspect
kubectl -nloggie exec -it ${podName} -- ./loggie inspect
```
**使用terminal**