From 4292e1aa92cc58fb1de4ff7d9a9bfc8a07c4a94b Mon Sep 17 00:00:00 2001 From: pengshiyu <1940607002@qq.com> Date: Fri, 30 Jun 2023 13:29:04 +0800 Subject: [PATCH] fix --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 756fd5f1e2..a9bf0a86d3 100644 --- a/README.md +++ b/README.md @@ -462,13 +462,22 @@ spec: ### 10、支持`prometheus` 的`/metrics`接口 -1、第一步、需要配置`.env` 参数,全局授权key +1、第一步、需要配置环境变量 `.env` 参数,全局授权key ```bash # prometheus key PROMETHEUS_KEY=f60c03bfff8bb42dcf6821542e5fd11e ``` +如果不配置授权key,每次重启将会生成新的key,可以在日志文件中查看 + +```bash +$ tail -f logs/domain-admin.log + +2023-06-30 13:09:40 [INFO] main.py/init_app: +PROMETHEUS_KEY: f60c03bfff8bb42dcf6821542e5fd11e +``` + 2、第二步、配置 prometheus.yml ```yaml