cost 316 ms
如何使用 Micrometer 配置 Spring Boot 3 和 Spring Stream(使用 RabbitMQ),在 Zipkin 中不分離跟蹤 HTTP 和 MQ?

[英]How can I configure Spring Boot 3 with Micrometer and Spring Stream (with RabbitMQ) that does not separate trace HTTP and MQ in Zipkin?

我配置了一個基本的 Spring Boot with Micrometer 和 Spring Stream (with RabbitMQ)。 我想配置 traceId 可以通過 Spring Stream 傳遞到另一個服務中。 我知道當我使用 tryNextEmit 時它會丟失跟蹤信息。 所以它會 ...

如何使用 Micrometer Tracing 將 TracingClientHttpRequestInterceptor 與 RestTemplate 的使用遷移到 springboot 3?

[英]how to migrate usage of TracingClientHttpRequestInterceptor with RestTemplate to springboot 3 with Micrometer Tracing?

我開始將服務遷移到 SpringBoot 3,現在我有一個使用org.springframework.cloud.sleuth.instrument.web.mvc.TracingInterceptor的問題代碼 我沒有在新的 Micrometer Tracing API 中找到org.sprin ...

在遷移到 Spring Boot 3.0.1/Spring Cloud 2022.0.0 后,跨 HTTP REST 和 Kinesis 消息傳遞服務邊界傳播跟蹤 ID

[英]Propagating trace IDs across HTTP REST and Kinesis messaging service boundaries after migrating to Spring Boot 3.0.1/Spring Cloud 2022.0.0

我正在將代碼從 Spring Boot 2.7.7/Spring Cloud 2021.0.5 遷移到 Spring Boot 3.0.1/Spring Cloud 2022.0.0。 作為此遷移的一部分,我現在使用io.micrometer:micrometer-tracing-bridge-o ...

使用 kafka spring boot 3 和 opentelemetry 的分布式跟蹤不起作用

[英]Distributed tracing with kafka spring boot 3 and opentelemetry not working

我想嘗試在 spring boot 3 Kafka 生產者和消費者之間進行跟蹤。 我按照https://spring.io/blog/2022/10/12/observability-with-spring-boot-3中的示例進行操作 當我在生產者和消費者之間使用 resttemplate 進行 ...

spring boot 指標,它們是線程安全的嗎

[英]spring boot metrics and are they thread safe

我在 spring boot 類中使用了以下計數器,我正在計算對某些資源的請求數 我想知道的是,當我將這個計數器注入我的類並調用增量時,這會導致線程方面的任何問題。 我讀到它在幕后使用原子數據結構? 跨多個服務怎么樣? Prometheous 應該與我認為的計數器同步。 ...

如何僅手動觸發儀表?

[英]How to trigger gauge only manually?

我想從我的數據庫中監控一個值。 這個值可以增加也可以減少,所以我使用了一個gauge 。 我沒有這個值的實例變量,所以我使用方法引用而不是 object 引用。 儀表會自動調用此方法。 出於性能原因,我不想定期調用該方法。 如何僅按需觸發儀表? 代碼@SpringBootApplication p ...

千分尺在哪里發布指標為<metricname> _seconds_bucket,<metricname> _seconds_count 和<metricname> _seconds_sum?</metricname></metricname></metricname>

[英]Where does the micrometer publish metrics as <metricName>_seconds_bucket, <metricName>_seconds_count and <metricName>_seconds_sum?

千分尺產生的指標如 對於所有指標。 Micrometer 在代碼中在哪里生成這些指標? 我想用我自己的來擴展這個指標。 例如我想看 ...

如何使用高分辨率告訴我找到所有 AWS 指標?

[英]How do I tell I find all AWS metrics using high-resolution?

我在 AWS cloudwatch 中遇到了這個錯誤 這沒有意義,因為我認為/認為我們有 0 個高分辨率指標(高分辨率僅記錄 3 小時)。 我們通常只做 1 分鍾的間隔報告。 如何找到所有具有高分辨率的指標? 通過這種方式,我希望我可以將它們編輯到不高分辨率。 我在文檔中搜索了大量內容,並查看了似 ...

springboot 應用程序的多個實例中的千分尺指標

[英]Micrometer metrics in multiple instances of springboot application

我在配置了 Prometheus 的 spring 啟動應用程序中有一個自定義千分尺指標,它每 15 秒抓取一次指標。 自定義指標每 1 分鍾查詢一次數據庫。 由於我運行了該服務的 2 個實例,因此這兩個實例每 1 分鍾嘗試運行一次相同的查詢。 無論如何,我可以配置為在我的 spring 啟動應用程 ...

從 Influxdb_V2 導入數據到 Spring Boot application

[英]Import data from Influxdb_V2 to Spring Boot application

我正在嘗試從 influxdb(版本 2)存儲桶中獲取數據到我的 Spring Boot 應用程序中。 我沒有在谷歌上找到任何參考資料來實現這個功能。 任何人都可以幫助我提供任何參考或文檔,以便我可以實現此功能。 ...

如果錯誤計數增加,在 grafana 中創建警報的查詢是什么

[英]what is the query to create alert in grafana if there is increment in the error count

將 prometheus 與我的 springboot 應用程序集成在一起,並使用千分尺計算應用程序中發生的異常,然后添加到 prometheus,如下所示: 已將 prometheus 與 grafana 集成並讀取 grafana 儀表板中的異常計數。 如果異常計數有任何增加,我們如何在 gra ...

使用 Micrometer 檢測 AWS 異步客戶端 sdk 線程池

[英]Instrumenting AWS async client sdk threadpool with Micrometer

我試圖了解檢測 AWS 異步客戶端使用的默認線程池執行程序的最佳方法。 來源。 我們正在使用 Micrometer 來跟蹤所有指標。 我的目的是了解我是否應該使用自定義線程池執行程序,或者默認的線程池執行程序是否足夠好。 我當前的代碼如下(並且按預期工作): 我覺得有一種更簡單的方法,但找不到。 ...

如何更改千分尺中的指標命名

[英]How can I change metrics naming in Micrometer

目前,在我的端點/actuator/prometheus上,我收到了這樣的計時器答案: 我正在像這樣創建我的計時器: Metrics.timer(operation, tags).record(endTime - startTime, TimeUnit.MILLISECONDS); 是否可以將命名從 ...

使用千分尺在 SpringBoot 中全局應用來自請求 header 的度量標簽

[英]Apply metric tag from request header globally in SpringBoot with Micrometer

我們有一個應用程序當前使用 spring 雲網關,我們需要將請求 header 添加到全球每個指標,這對於框架中的開箱即用指標來說非常容易。 當我們想要添加自己的自定義指標時,問題就來了。 不發送任何全局添加的標簽。 這是我的配置: 這是添加我的自定義指標的地方: 通過此設置,我可以在請求指標中看到 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM