spring-boot-actuator

Register Caffeine Cache in Spring Actuator (CacheManager)

一曲冷凌霜 提交于 2021-02-18 19:00:23
问题 We're using Spring Boot 2 and Spring Actuator. When creating a cache like the following: @Bean public CaffeineCache someCache() { return new CaffeineCache("my-cache", Caffeine.newBuilder() .maximumSize(1000) .expireAfterWrite(10, TimeUnit.SECONDS) .build()); } it is registered into Spring Actuator and can be accessed and handle via endpoints: ❯ http GET localhost:8080/actuator/caches { "cacheManagers": { "cacheManager": { "caches": { "my-cache": { "target": "com.github.benmanes.caffeine.cache

Register Caffeine Cache in Spring Actuator (CacheManager)

一个人想着一个人 提交于 2021-02-18 19:00:07
问题 We're using Spring Boot 2 and Spring Actuator. When creating a cache like the following: @Bean public CaffeineCache someCache() { return new CaffeineCache("my-cache", Caffeine.newBuilder() .maximumSize(1000) .expireAfterWrite(10, TimeUnit.SECONDS) .build()); } it is registered into Spring Actuator and can be accessed and handle via endpoints: ❯ http GET localhost:8080/actuator/caches { "cacheManagers": { "cacheManager": { "caches": { "my-cache": { "target": "com.github.benmanes.caffeine.cache

Register Caffeine Cache in Spring Actuator (CacheManager)

一个人想着一个人 提交于 2021-02-18 18:59:54
问题 We're using Spring Boot 2 and Spring Actuator. When creating a cache like the following: @Bean public CaffeineCache someCache() { return new CaffeineCache("my-cache", Caffeine.newBuilder() .maximumSize(1000) .expireAfterWrite(10, TimeUnit.SECONDS) .build()); } it is registered into Spring Actuator and can be accessed and handle via endpoints: ❯ http GET localhost:8080/actuator/caches { "cacheManagers": { "cacheManager": { "caches": { "my-cache": { "target": "com.github.benmanes.caffeine.cache

Spring Boot Actuator - Multiple Health Endpoints

巧了我就是萌 提交于 2021-02-18 15:03:58
问题 Is there any way to support multiple health endpoints on a Spring Boot application? Here's why: The standard actuator health check is great, built in checks are great, customization options are great - for a single use case: reporting on general application health. But I'd like something I can call from an AWS Elastic Load Balancer / AutoScaling Group. By default, if an instance fails a health check, the ELB/ASG will terminate it and replace it with a fresh instance. The problem is some of

Spring Boot Actuator - Multiple Health Endpoints

ε祈祈猫儿з 提交于 2021-02-18 15:02:09
问题 Is there any way to support multiple health endpoints on a Spring Boot application? Here's why: The standard actuator health check is great, built in checks are great, customization options are great - for a single use case: reporting on general application health. But I'd like something I can call from an AWS Elastic Load Balancer / AutoScaling Group. By default, if an instance fails a health check, the ELB/ASG will terminate it and replace it with a fresh instance. The problem is some of

Spring Boot Health Check - SQS Consumer

旧街凉风 提交于 2021-02-11 06:36:25
问题 Is there a Spring Boot Actuator Health Check endpoint for SQS? I have built a SQS consumer and I want to check if SQS is up and running. I am not using JMSlistener for connecting to SQS but rather using Spring Cloud Libraries. I implemented the below health check endpoint. This returns the below error when I delete the queue and try to hit the health check endpoint. If there is a connectivity issue or if the SQS service goes down , will I be getting a similar error which will eventually cause

Actuator Exposing Endpoints not working

牧云@^-^@ 提交于 2021-02-10 15:53:49
问题 I am using spring boot 2.0.4 and want to expose my actuator endpoints. When adding the following to application.yml only info, health are being exposed. management: endpoints: web: exposure: include: "*" When I run http://localhost:8080/actuator I get {"_links":{"self":{"href":"http://localhost:8080/actuator","templated":false},"health":{"href":"http://localhost:8080/actuator/health","templated":false},"info":{"href":"http://localhost:8080/actuator/info","templated":false}}} 回答1: Spring Boot

Forttify dynamic-code-evaluation-unsafe-deserialization on Spring Boot Actuator 2.1.6

心不动则不痛 提交于 2021-02-10 14:47:47
问题 I have the same problem as in the question, the only answer is to upgrade the spring-boot version to 2.0.6. However, I currently have version 2.1.6.RELEASE and I still have the same vulnerability in the report. 回答1: Your scan report should have an abstract, explanation, and recommendation for the issue. (Here are a few links to help you generate the report - Fortify file (.fpr file) to PDF convertion, How do I generate a report that has all the issues?) In short, this issue is because

Forttify dynamic-code-evaluation-unsafe-deserialization on Spring Boot Actuator 2.1.6

匆匆过客 提交于 2021-02-10 14:47:16
问题 I have the same problem as in the question, the only answer is to upgrade the spring-boot version to 2.0.6. However, I currently have version 2.1.6.RELEASE and I still have the same vulnerability in the report. 回答1: Your scan report should have an abstract, explanation, and recommendation for the issue. (Here are a few links to help you generate the report - Fortify file (.fpr file) to PDF convertion, How do I generate a report that has all the issues?) In short, this issue is because

What is the unit for the Spring actuator http.server.requests statistic

依然范特西╮ 提交于 2021-02-10 00:22:49
问题 I have service implemented with spring-boot-starter-2.0.0.RELEASE . I have enabled actuator metrics for it, however I cannot understand what units are the metrics presented in. Specifically, I am interested in the http.server.requests . A sample output of the endpoint is: { "name": "http.server.requests", "measurements": [ { "statistic": "COUNT", "value": 2 }, { "statistic": "TOTAL_TIME", "value": 0.049653001 }, { "statistic": "MAX", "value": 0.040696019 } ], "availableTags": [ { "tag":