From e21ab160e207b04a4c5883d15af54e83e6f2c904 Mon Sep 17 00:00:00 2001 From: lili Date: Sun, 5 Jul 2026 11:50:20 -0700 Subject: [PATCH] =?UTF-8?q?feat(obs):=20T2-5=20Prometheus=20scrape=20game-?= =?UTF-8?q?cloud=20actuator(=E6=B3=A2=E2=91=A1=20=E7=AB=AF=E7=82=B9?= =?UTF-8?q?=E5=B7=B2=E6=88=90=E7=AB=8B=C2=B7dev=20target)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 波② 已给 huijing-server 挂 actuator/micrometer、/actuator/prometheus 端点成立并 dev 亲验, 本波启用 prometheus.yml 里预留注释的 game-cloud job:target=dev huijing-dev(100.64.0.7:48080, staging profile 已放行 /actuator/**、exposure 仅 health,prometheus)。nacos/rmq job 仍留注释 (各自 exporter 未就位、不越界)。 Co-Authored-By: Claude Opus 4.8 (1M context) --- deploy/infra/observability/prometheus.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/deploy/infra/observability/prometheus.yml b/deploy/infra/observability/prometheus.yml index e9aadf9f..40907dc4 100644 --- a/deploy/infra/observability/prometheus.yml +++ b/deploy/infra/observability/prometheus.yml @@ -32,11 +32,15 @@ scrape_configs: # game-cloud 要先挂 actuator/micrometer 让 /actuator/prometheus 端点成立; # nacos/rocketmq 的 micrometer 端点同样待各自 exporter 就位。端口按各服务实际暴露核对。 # ========================================================================= - # - job_name: game-cloud - # metrics_path: /actuator/prometheus - # static_configs: - # - targets: ["100.64.0.X:PORT"] # game-cloud 单体 actuator 端口(待定) - # + # game-cloud 单体 actuator(波② 已挂 actuator/micrometer,/actuator/prometheus 端点成立;T2-5 启用 2026-07-05)。 + # dev 后端在 mini-desktop(100.64.0.7:48080),staging profile 已放行 /actuator/**(无鉴权可抓);exposure 仅 health,prometheus。 + - job_name: game-cloud + metrics_path: /actuator/prometheus + static_configs: + - targets: ["100.64.0.7:48080"] # dev huijing-dev 单体 actuator(跨机 Tailscale) + labels: + env: dev + # - job_name: nacos # metrics_path: /nacos/actuator/prometheus # static_configs: