问题标签 [actuator]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
309 浏览

spring-boot - Fortify-spring-boot-starter-actuator反序列化漏洞与最新的spring boot版本

我正面临动态代码评估:使用最新的 Spring Boot 版本 2.2.4 发布的强化扫描中的不安全反序列化。有人可以帮忙解决这个问题吗?

0 投票
3 回答
810 浏览

spring-boot - 直接访问 Spring Boot Actuator Health bean/数据?

从 Sprig Boot 应用程序是否可以直接访问执行器/健康数据而不进行休息调用和解析结果?

理想情况下,我可以自动装配一个 bean,然后能够通过方法调用获取健康数据的对象表示。

例如,如果我的健康端点显示如下内容:

那么我可以自动装配哪些组件来找出这些信息中的每一个?

0 投票
1 回答
536 浏览

spring-boot - 如何在执行器prometheus中导入执行器httptrace?(执行器、弹簧靴、grafana)

想象一下这是我的http://localhost:8080/actuator输出:

现在我已经将我的 prometheus 环境连接到/actuator/prometheus并且工作正常。我还希望 prometheus 读取我的 httptrace,所以我也添加/actuator/httptrace到我的 prometheus 配置中。但是,这不起作用。httptrace端点上的格式是json,prometheus中的格式是yaml,我想我需要prometheus yaml中的httptrace。Prometheus 吃 yaml 就好了,json 没那么多。

如何将我的 httptrace 从我的 Spring Boot 项目传递给 actuator/prometheus?最后,我的目标是获取 grafana 中每个请求的 timeTaken 值。

0 投票
2 回答
2843 浏览

java - How to count number of requests in spring boot app?

I have a spring boot application whose metrics I want to later send to gcp. But for now I just need to find a way to count the total number of requests my application is handling either with actuator or with micrometer. Does anybody know how I could do something like this? Thanks In advance

0 投票
1 回答
563 浏览

matlab - 第 2 代 Simscape Multibody 中的关节执行器块的替代品是什么?

我正在学习关于在 中设计 TR3 机械手的课程SolidWorks,通过 Solidworks 导出XML file可以通过 MATLAB 导入的课程Simscape Multibody,然后尝试为其创建控制系统。不幸的是,Simscape多年来发生了变化,Simscape 中的联合执行器块不再存在。

此时请看2张图片(1st one - course , 2nd one - my implementation)

课程实施

我自己的实现

我试图将多路复用器直接连接到旋转接头。不幸的是,我收到以下错误

Error in port widths or dimensions. Output port 1 of 'TR3RobotExport/Mux' is a one dimensional vector with 3 elements. Component:Simulink | Category:Model error Error in port widths or dimensions. Input port 1 of 'TR3RobotExport/Simulink-PS Converter' is a one dimensional vector with 1 elements.

0 投票
1 回答
4202 浏览

spring - 在 Spring AOP 中获取请求/响应正文和标头

我想在我的方面之前和之后获取请求/响应正文和标头,如果它可用或如何获取这些。

我的意思是我认为之前的注释应该可以满足要求,

带有注释后应该可以响应。可 ?

到目前为止我已经尝试过:

我尝试了日志库,它对我来说非常复杂,我无法弄清楚如何使用它。所以我放弃了。

执行器可以发挥作用,但我正在做额外的工作,例如端点调用的次数等。因此我不能使用执行器。

我也尝试至少获得如下所示的请求标头,但我认为这些标头始终相同。我无法像 httpservetrequest 那样获得 httpservletresponse。

那么 request.getHeader("date")requestbody 呢?

如何获得请求体?响应体?响应头?

我的方面文件:

我的控制器类:

0 投票
1 回答
115 浏览

spring-boot - 使用 SpringBoot 的普罗米修斯

我有一个关于使用 Prometheus 和 SpringBoot 的大问题。我知道我可以连接 Java 应用程序(SpringBoot)和 Prometheus 作为依赖项——>然后我可以监视该应用程序。我真的很想知道,有什么方法可以创建该应用程序并监视其他应用程序吗?我的意思是,我想知道如何将我的应用程序(带有 Prometheus 的 SpringBoot)与 Eureka Server(它与我想要监控的许多微服务相连),从其他微服务获取指标,并将其发送到 grafana 以创建仪表板。

0 投票
1 回答
257 浏览

java - 如何为准备探测配置 hazelcast IMDG

我正在尝试使用 springboot 中的执行器来实现就绪探测。我已经在我的掌舵中使用就绪探针进行了数据库健康检查:

我猜我只需要修改值部分来添加 Hazelcast IMDG,但我不确定是否是这种情况。我找不到解释如何配置它的好网站。我如何实现这一目标?

0 投票
1 回答
333 浏览

java - Is there a standard way in Spring Boot Actuators of checking the health of child services?

Suppose I have Spring Boot service A which depends on (calls) Spring Boot service B.

Spring Boot Actuators can tell me if A is up.

https://A/health

What I want to know is if B is up, by calling A.

https://A/integratedhealth

My question is: Is there a standard way in Spring Boot Actuators of checking the health of child services? (or do I just have to build a custom actuator service?)

0 投票
1 回答
1171 浏览

java - java中promtheus的错误(spring acuator)

我在我的 Spring Boot 应用程序中启用并配置了带有 Prometheus 端点的 Spring Actuator。但是我收到一个错误,Prometheus 要求所有同名的仪表都具有相同的标签键集。但不幸的是,Spring Actuator 不会为jvm_gc_pause_seconds.

我在用着:

这是我的错误信息:

任何想法?!micrometer-registry-prometheus删除 Prometheus 端点配置(依赖项)时没有此错误。