常用應用程式屬性

可以在 application.properties 檔案、application.yml 檔案或作為命令列開關指定各種屬性。本附錄提供了 Spring Cloud Commons 常用屬性列表以及對使用它們的底層類的引用。

屬性貢獻可能來自您 classpath 中的其他 jar 檔案,因此您不應將其視為詳盡列表。此外,您還可以定義自己的屬性。

可觀測性元資料

可觀測性 - 指標

以下是本專案宣告的所有指標列表。

熔斷器函式觀測

當我們用熔斷器包裝作為回退的函式時建立的觀測。

指標名稱 spring.cloud.circuitbreaker (由約定類 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定義)。型別 timer

指標名稱 spring.cloud.circuitbreaker.active (由約定類 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定義)。型別 long task timer

在啟動觀測後新增的鍵值可能會從 *.active 指標中缺失。
Micrometer 內部使用 納秒 作為基本單位。但是,每個後端確定實際的基本單位。(即 Prometheus 使用秒)

封閉類的完全限定名 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

所有標籤必須以 spring.cloud.circuitbreaker 字首開頭!
表 1. 低基數鍵

名稱

描述

spring.cloud.circuitbreaker.type (必需)

定義包裝 lambda 的型別。

熔斷器 Supplier 觀測

當我們用熔斷器包裝作為 Supplier 的函式時建立的觀測。

指標名稱 spring.cloud.circuitbreaker (由約定類 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定義)。型別 timer

指標名稱 spring.cloud.circuitbreaker.active (由約定類 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定義)。型別 long task timer

在啟動觀測後新增的鍵值可能會從 *.active 指標中缺失。
Micrometer 內部使用 納秒 作為基本單位。但是,每個後端確定實際的基本單位。(即 Prometheus 使用秒)

封閉類的完全限定名 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

所有標籤必須以 spring.cloud.circuitbreaker 字首開頭!
表 2. 低基數鍵

名稱

描述

spring.cloud.circuitbreaker.type (必需)

定義包裝 lambda 的型別。

可觀測性 - Span

以下是本專案宣告的所有 Span 列表。

熔斷器函式觀測 Span

當我們用熔斷器包裝作為回退的函式時建立的觀測。

Span 名稱 spring.cloud.circuitbreaker (由約定類 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定義)。

封閉類的完全限定名 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

所有標籤必須以 spring.cloud.circuitbreaker 字首開頭!
表 3. 標籤鍵

名稱

描述

spring.cloud.circuitbreaker.type (必需)

定義包裝 lambda 的型別。

熔斷器 Supplier 觀測 Span

當我們用熔斷器包裝作為 Supplier 的函式時建立的觀測。

Span 名稱 spring.cloud.circuitbreaker (由約定類 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定義)。

封閉類的完全限定名 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

所有標籤必須以 spring.cloud.circuitbreaker 字首開頭!
表 4. 標籤鍵

名稱

描述

spring.cloud.circuitbreaker.type (必需)

定義包裝 lambda 的型別。

© . This site is unofficial and not affiliated with VMware.