tachybase_todo/packages/plugins/@tachybase/plugin-prometheus/README.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

626 B

prometheus

English | 中文

Install

First, edit .env to enable the system telemetry and add the prometheus collector

TELEMETRY_ENABLED=on
TELEMETRY_METRIC_READER=console,prometheus
TELEMETRY_PROMETHEUS_SERVER=on # If not on, the prometheus server will be registered to prometheus:metrics, note that the standalone prometheus server has NO permission restriction!
TELEMETRY_PROMETHEUS_PORT=9464 # The port of the prometheus server, default to 9464

Then enable the plugin

pnpm pm add @tachybase/plugin-prometheus
pnpm pm enable @tachybase/plugin-prometheus

Usage

TODO