From f8561d1d59d9d2f3e0544fcd8f127051d6a6b19a Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Tue, 30 Sep 2025 11:53:45 +0800
Subject: [PATCH] 增加监控服务

---
 ard-admin/src/main/resources/application.yml |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/ard-admin/src/main/resources/application.yml b/ard-admin/src/main/resources/application.yml
index 6bcb9f9..56e4165 100644
--- a/ard-admin/src/main/resources/application.yml
+++ b/ard-admin/src/main/resources/application.yml
@@ -93,6 +93,8 @@
 
 # Spring配置
 spring:
+  application:
+    name: ard-uav
   # 资源信息
   messages:
     # 国际化资源文件路径
@@ -140,4 +142,26 @@
   # 激活配置文件
   profiles:
     # active: prod-druid,prod
-    active: dev-druid,dev
\ No newline at end of file
+    active: dev-druid,dev
+  #健康监控
+  boot:
+    admin:
+      client:
+        url: http://127.0.0.1:9100
+        username: admin
+        password: admin
+
+# 服务端点检查
+management:
+  endpoints:
+    web:
+      exposure:
+        include: health,info,logfile,loggers
+  endpoint:
+    info:
+      enabled: true
+    health:
+      enabled: true
+      show-details: always
+    logfile:
+      external-file: logs/${spring.application.name}/info.log

--
Gitblit v1.9.3