cost 352 ms
如何使用 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 添加到全球每个指标,这对于框架中的开箱即用指标来说非常容易。 当我们想要添加自己的自定义指标时,问题就来了。 不发送任何全局添加的标签。 这是我的配置: 这是添加我的自定义指标的地方: 通过此设置,我可以在请求指标中看到 ...

在 Java springboot 应用程序中使用千分尺收集 HikariCp 指标,方法是在

[英]HikariCp metrics collection using micrometer in Java springboot application by configuring it in

社区,我有一个要求,我想通过配置在 Java Spring Boot 应用程序中使用微米来进行 HikariCp 指标收集。 我环顾四周,但在官方文档中找不到太多帮助 https://github.com/brettwooldridge/HikariCP/tree/dev/src/main/j ...


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