tachybase_todo/packages/plugins/@tachybase/plugin-prometheus/README.zh-CN.md
TomyJan ac65c94730 feat: telemetry init (#1378)
Reviewed-on: daoyoucloud/tachybase#1378
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: TomyJan <TomyJan6@gmail.com>
Co-committed-by: TomyJan <TomyJan6@gmail.com>
2024-07-25 10:55:37 +08:00

26 lines
608 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# prometheus
[English](./README.md) | 中文
## 安装激活
首先编辑 `.env`,启用系统的遥测功能并添加采集器 prometheus
```
TELEMETRY_ENABLED=on
TELEMETRY_METRIC_READER=console,prometheus
TELEMETRY_PROMETHEUS_SERVER=on # 如果不为 on则 prometheus 服务器将注册到 prometheus:metrics ,注意 prometheus 的独立服务器*没有*权限限制!
TELEMETRY_PROMETHEUS_PORT=9464 # prometheus 服务器的端口,默认为 9464
```
然后启用插件
```shell
pnpm pm add @tachybase/plugin-prometheus
pnpm pm enable @tachybase/plugin-prometheus
```
## 使用方法
TODO