From badef3ea5a575841d47351c5df043db086e4a275 Mon Sep 17 00:00:00 2001 From: ungreat Date: Thu, 12 Dec 2024 20:18:02 +0800 Subject: [PATCH 1/2] default disable actuator --- .../config/application-clientMode.yml | 74 ++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/server/odc-server/src/main/resources/config/application-clientMode.yml b/server/odc-server/src/main/resources/config/application-clientMode.yml index 2075a06645..1aceef1d10 100644 --- a/server/odc-server/src/main/resources/config/application-clientMode.yml +++ b/server/odc-server/src/main/resources/config/application-clientMode.yml @@ -25,6 +25,78 @@ spring: jpa: database-platform: org.hibernate.dialect.H2Dialect management: + endpoints: + enabled-by-default: false + web: + exposure: + include: [] # 明确设置为空列表,确保没有端点暴露 + metrics: + export: + simple: + enabled: false + appoptics: + enabled: false + atlas: + enabled: false + datadog: + enabled: false + dynatrace: + enabled: false + elastic: + enabled: false + ganglia: + enabled: false + graphite: + enabled: false + influx: + enabled: false + jmx: + enabled: false + kairos: + enabled: false + newrelic: + enabled: false + prometheus: + enabled: false + signalfx: + enabled: false + stackdriver: + enabled: false + statsd: + enabled: false + wavefront: + enabled: false + health: + defaults: + enabled: false + diskspace: + enabled: false + db: + enabled: false + auditevents: + enabled: false endpoint: - prometheus: + loggers: + enabled: false + threaddump: + enabled: false + env: + enabled: false + beans: + enabled: false + conditions: + enabled: false + configprops: + enabled: false + info: + enabled: false + httptrace: + enabled: false + mappings: + enabled: false + scheduledtasks: + enabled: false + sessions: enabled: false + shutdown: + enabled: false \ No newline at end of file From 3dd35c3d0cbc3162948f3570f441b09eed7be160 Mon Sep 17 00:00:00 2001 From: ungreat Date: Tue, 17 Dec 2024 15:56:39 +0800 Subject: [PATCH 2/2] default disable actuator --- .../src/main/resources/config/application-clientMode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/odc-server/src/main/resources/config/application-clientMode.yml b/server/odc-server/src/main/resources/config/application-clientMode.yml index 1aceef1d10..6ee099ef2a 100644 --- a/server/odc-server/src/main/resources/config/application-clientMode.yml +++ b/server/odc-server/src/main/resources/config/application-clientMode.yml @@ -29,7 +29,7 @@ management: enabled-by-default: false web: exposure: - include: [] # 明确设置为空列表,确保没有端点暴露 + include: [] metrics: export: simple: