tachybase_todo/packages/plugins/@tachybase/plugin-prometheus
sealday ea5c2ca0d5 chore(version): release v0.21.78 (#1381)
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1381
2024-07-25 13:07:09 +08:00
..
src feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00
.npmignore feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00
client.d.ts feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00
client.js feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00
package.json chore(version): release v0.21.78 (#1381) 2024-07-25 13:07:09 +08:00
README.md feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00
README.zh-CN.md feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00
server.d.ts feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00
server.js feat: telemetry init (#1378) 2024-07-25 10:55:37 +08:00

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