cost 254 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 时它会丢失跟踪信息。 所以它会 ...

Spring Micrometer:如何获取标签相关信息 - Spring Micrometer: How to access tag related information

很抱歉提出这个愚蠢的问题,但我无法理解如何从 Micrometer 中提取特定于标签的信息。 我们正在使用 Spring Boot 2.7.6。 当使用带有这样标签的多个计数器时: 这导致每个租户一个柜台。 在调试器中我可以清楚地看到它们是独立计算的。 在http://127.0.0.1:8080/ ...

spring-kafka ReactiveKafkaProducerTemplate Micrometer 支持 - spring-kafka ReactiveKafkaProducerTemplate Micrometer support

我们正在使用 在我们的 Spring Boot 应用程序 (Spring Boot 2.6.13) 中,并希望在执行器端点中查看生产者指标。 它似乎不支持这一点。 知道如何设置模板来绑定指标吗? spring-kafka版本是2.8.10 我找到了 KafkaTemplate 的这段代码,但 Re ...

spring boot 指标,它们是线程安全的吗 - spring boot metrics and are they thread safe

我在 spring boot 类中使用了以下计数器,我正在计算对某些资源的请求数 我想知道的是,当我将这个计数器注入我的类并调用增量时,这会导致线程方面的任何问题。 我读到它在幕后使用原子数据结构? 跨多个服务怎么样? Prometheous 应该与我认为的计数器同步。 ...

如何仅手动触发仪表? - How to trigger gauge only manually?

我想从我的数据库中监控一个值。 这个值可以增加也可以减少,所以我使用了一个gauge 。 我没有这个值的实例变量,所以我使用方法引用而不是 object 引用。 仪表会自动调用此方法。 出于性能原因,我不想定期调用该方法。 如何仅按需触发仪表? 代码@SpringBootApplication p ...

使用段 ID 标记来自 Axon Framework MessageMonitor 的指标 - Tagging metrics from an Axon Framework MessageMonitor with the segment ID

对于某些背景,我们有一个自定义消息监视器,它与 Axon Framework >=4.1 中包含的EventProcessorLatencyMonitor非常相似。 我的理解是onMessageIngested只有在该处理器声明了处理组的一部分时才会被调用。 我想将此段 ID 作为指标的标签包 ...

如何使用 Spring Cloud Spring Boot 3.x Stream 4.x 生产者和消费者关联记录器中的跟踪信息 - How to instrument Spring Boot 3.x with Spring Cloud Stream 4.x producers and consumers to correlate tracing information in loggers

升级到 Spring Boot 3 后,我不得不更新跟踪/关联配置以从 Spring Cloud Sleuth 切换到新的 Micrometer Tracing 库。 此时,我可以在日志中看到 traceId/spanId 信息,这些信息已通过自动检测的WebClient使用 HTTP 调用正确传输 ...

千分尺在哪里发布指标为<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 分钟的间隔报告。 如何找到所有具有高分辨率的指标? 通过这种方式,我希望我可以将它们编辑到不高分辨率。 我在文档中搜索了大量内容,并查看了似 ...

带有 Micrometer Tracing 的 Spring Boot 3 Webflux 应用程序未在控制台日志中显示 traceId 和 spanId - Spring Boot 3 Webflux application with Micrometer Tracing not showing traceId and spanId in the console logs

我正在替换 Spring Cloud Sleuth,以使用新的 Micrometer Tracing for Spring Boot 3 生成日志相关性。 我一直在关注这篇博文来配置示例项目 traceId/spanId 似乎不会根据请求自动生成: currentSpan为 null,日志显示空 ...

Spring Boot Micrometer Metric system_load_average_1m 的解释 - Explanation of Spring Boot Micrometer Metric system_load_average_1m

这个指标的解释是什么: system_load_average_1m 这是帮助文本,但我不太明白。 HELP system_load_average_1m 排队等待可用处理器的可运行实体数与一段时间内平均可用处理器上运行的可运行实体数之和在这种情况下,我有一个 CPU。 是不是同时要解决的任务太多 ...

springboot 应用程序的多个实例中的千分尺指标 - Micrometer metrics in multiple instances of springboot application

我在配置了 Prometheus 的 spring 启动应用程序中有一个自定义千分尺指标,它每 15 秒抓取一次指标。 自定义指标每 1 分钟查询一次数据库。 由于我运行了该服务的 2 个实例,因此这两个实例每 1 分钟尝试运行一次相同的查询。 无论如何,我可以配置为在我的 spring 启动应用程 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM