![](/img/trans.png)
[英]Spring boot 3.0.1 Actuator HttpTraceRepository
我正在使用 Spring Boot 3.0.1,我正在嘗試在應用程序的配置 class 中實現 HttpTraceRepository: 我已經聲明了執行器依賴項: 但是我無法實現 HttpTraceRepository Bean,因為執行器 package 中不再存在 class。 這是設計使然 ...
[英]Spring boot 3.0.1 Actuator HttpTraceRepository
我正在使用 Spring Boot 3.0.1,我正在嘗試在應用程序的配置 class 中實現 HttpTraceRepository: 我已經聲明了執行器依賴項: 但是我無法實現 HttpTraceRepository Bean,因為執行器 package 中不再存在 class。 這是設計使然 ...
[英]How to test one service in another's readiness probe?
我必須為我的 spring 啟動應用程序中的每項服務實施就緒探測。 我在應用程序中的每個服務都公開了活躍性和就緒性端點。 我的一些服務依賴於其他服務。 問題是:如何檢查服務 A 是否准備好服務 B? 編寫 ServiceAHealthIndicator class,它將請求服務 A 活性端點。 然 ...
[英]How can I hide internal APIs on a SpringBoot service standing behind a TCP load balancer
我想知道僅在 SpringBoot 服務上公開某些 API 的最佳做法是什么。 對於上下文,我有一項服務將位於 TCP 負載均衡器后面,該負載均衡器具有一些將從 web 頁面調用的 api。 但是,我想限制公開哪些 API,例如 Prometheus 的指標抓取端點和其他一些執行器類型的端點。 我 ...
[英]Spring boot actuator for commandline runner application
我想在 PCF 中為非 web 或批處理或 commandLineRunner spring 啟動應用程序啟用執行器以進行健康檢查。 有人可以分享一些細節來解決這個問題嗎? 如果需要任何其他詳細信息,請告訴我我嘗試了以下選項添加執行器依賴添加http和jmx相關屬性由於 localhost:8081 ...
[英]Spring Boot Rest API failed to run if actuator dependency is added to pom.xml
我有一個簡單的 spring 啟動應用程序,其中只有一個 GET 端點用於測試目的。 只要我不將執行器依賴項添加到我的項目中,端點就可以正常工作。 但是,一旦我添加執行器依賴項,它就會停止運行並拋出以下錯誤,我相信這對於 swagger 來說是令人驚訝的。 因此,如果我已經啟用並工作了 swagge ...
[英]Spring Boot Actuators only exposing limited endpoints
我試圖在我的 Spring Boot 2.3 服務中公開其他執行器端點。 嘗試添加端點,例如 prometheus 和監控指標。 但由於某種原因,暴露的端點被鎖定到默認的記錄器、健康、信息。 對於某些背景,在組織內,有一個父 Spring 依賴項,它自動帶來所有 Spring 必需品,以及一些在組織 ...
[英]Spring Boot Back-End with Angular Front-End getting status and metrics from prometheus and health endpoint but 401
在集群上部署時遇到 401 錯誤問題。 請注意在本地開發期間未發生的問題。 只有在測試集群上部署后才會出現問題。 目前該項目僅處於開發/測試階段。 后端配置(Spring 屬性文件): server.port=8085 management.health.defaults.enab ...
[英]How to control a linear actuator with an ESP32 and a BME280 sensor
我正在嘗試對EPS32板進行編程,以根據BME 280傳感器獲得的溫度打開和關閉線性執行器。 它用於自動化園藝項目:) 我的代碼是功能性的,但我想完善它。 執行器當前與兩個 GPIO 引腳相連,一個用於打開,另一個用於關閉。 目標: 不使用時關閉繼電器。 將 delay() 的使用替換為millis ...
[英]IO Mapping in Codesys
我正在使用 ifm AC1421 PLC。 我正在使用 ifm AC2218 D/A 模塊來操作執行器,即比例閥。 A/D 模塊 AC2517 ifm 用於從壓力傳感器獲取數據。 我想知道如何在 Codesys 中完成 I/O 映射,即我需要在什么地址定義它們。 我附上了一張圖片,顯示了當前分 ...
[英]Spring boot management.metrics.distribution exception
我正在嘗試在我的 spring 引導application.properties文件中設置這兩個屬性的值 - 或者 每次我嘗試使用這兩個字段集運行我的應用程序時,我都會遇到以下異常 - APPLICATION FAILED TO START\n***************************\ ...
[英]Turnoff Spring Actuator /Health Logger in kubernates
我在 application.properties 文件中關閉了我的 spring 引導執行器活動/准備日志 但是它在 Kubernate 環境中記錄健康檢查日志...... 有沒有辦法關閉健康檢查日志... 感謝您的回復... ...
[英]Synchronize Prometheus data on all pods
我有一個關於同步 Prometheus 數據的問題。 我有 2 個 Pod 在 2 個不同的環境中運行(相同的 Spring 引導服務並連接到相同的 Redis Db)。 當一個服務更新指標時,我想強制另一個服務也刷新它的指標,以便它們都顯示相同的信息。 有沒有辦法強制重新加載所有連接的服務? 這甚 ...
[英]How to get healthcheck status without calling actuator endpoint?
在 springboot 應用程序中,我想生成/version端點,它結合了一些/actuator/health和/actuator/info數據。 從健康端點我需要總體狀態UP / DOWN 。 如何在 java 代碼中檢索應用程序狀態? 基於這個答案,我試圖檢索所有HealthIndicato ...
[英]Contents of property source files are not recognized in some classes
從特定 class 調用時,@Value 注釋不會從屬性文件中獲取屬性。 屬性配置: 當我從 ProjectInfoServiceImpl class 調用屬性時,它會返回但不能從 JwtTokenUtil class 中工作。 秘密在這里返回 null: 但在這里它按預期返回: 這是文件夾結構: ...
[英]swagger, actuator "Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException"
當同時使用 Spring Boot 2.6 actuator 和 swagger 時,出現“Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerExcep ...
[英]spring boot actuator endpoints with Keycloak security
我們有一個帶有執行器端點的 spring 引導項目(2.3.0.RELEASE),我們正在使用 KeycloakWebSecurityConfigurerAdapter 將 keycloak 引入項目中,如何防止執行器端點受到 keycloak 過濾器鏈的保護。 我們希望通過基本身份驗證保護“/ac ...
[英]How to enable health in Spring Boot Actuator
我必須檢查我的服務/應用程序是否有效。 我添加了依賴 並且還嘗試將management.endpoint.health.show-details: always添加到application.yml但它沒有幫助。 我試圖 go 到http://localhost:8080/actuator/healt ...
[英]micrometer dynatrace registry vs. OneAgent process monitoring
我對監控世界很陌生。 我們在生產中部署了一些 spring 引導應用程序,並且我們已經在使用 Dynatrace 作為我們的監控工具。 在閱讀了dynatrace 的文檔后,我了解到開箱即用的 OneAgent 可以自動發現我的整個 Java 應用程序堆棧並對其進行監控。 我還了解了千分尺 dyna ...
[英]Spring Cloud Data Flow monitoring prevents task from finishing
我正在嘗試監視我的 Spring Cloud Data Flow批處理任務,文檔說明如下: To enable Task metrics integration with Data Flow, you must add the spring-boot-starter-actuator to yo ...
[英]How to test multiple instance creation of a bean of one class filled with values from application.properties?
根據使用application.properties 中的值填充的一個類的 bean 的多個實例,使用 @PostConstruct 創建特定類的多個 bean 之后 我想知道如何測試這些 bean 實例的創建。 我是這樣試的: 但這會導致: AppHealthCheckProperties( ...