Actuator, Prometheus ? Grafana? ???? ?? ??????? ?? ??? ? ???? ??
Jan 05, 2025 am 06:15 AM???? ?? ???? ??????? ????? ??????? ???? ????? ? ??? ?? ?? ?? ??? ???? ??? ?????. NGINX ?? ???, ?? ???, ?? ???? ?? ??? ??? ?? ??????. ?? ??? ??? ? ????.
? ??? ?????? Spring Boot Actuator, Prometheus ? Grafana? ??????? ???? ??? ?? ??? ???? ??? ???????. ??. ?? ??????? ??? ?????, ?? ??? ????, ??? ??? ????? ???? ? ??? ???.
????? ??????
????? ???? ???? ???? ???? ???? ?? ??? ???? ??? ?????. ?? ???? ? ?? ??? ??? ????.
- ????: ??? ??? ??? ???(?: ?? ??, ??? ???, CPU ???).
- ??: ??? ??(?: ??, ?? ?? ???? ???)
- ??: ?? ???? ?? ??? ??? ????.
????? ??? ??? ?? ??????? ??? ???? ???? ??? ????? ??? ??? ? ????.
?? ???????? ?? ???? ??? ??
?? ?????? ?????? ?? ?? ?? ??? ????.
- NGINX ?? ???: ?? ??? ???? ?????.
- Rate Limiter: ?? ?? ???? ???? ?????.
- ?? ???: ??? ???? ?? ??? ???? ???? ?????.
??? ??? ??? ??? ???? ?????? ??? ? ??? ????? ?? ?? ? ???? ??? ????? ????? ????. Actuator, Prometheus ? Grafana? ?? ?? ??? ??? ?????.
- ?????? ?? ? ??? ?? ??? ??? ?????.
- ??? ??? ?? ??? ????? ? ??? ???.
- ????? ??? ???? ???? ??? ??????.
???? ??
pom.xml ??? ?? ???? ?????.
<dependency> <groupId>io.github.resilience4j</groupId> <artifactId>resilience4j-micrometer</artifactId> <version>2.2.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> <version>1.14.1</version> </dependency>
application.properties ?? ????
resilience4j.circuitbreaker.metrics.enabled=true management.health.circuitbreakers.enabled=true management.endpoints.web.exposure.include=health,metrics,circuitbreakers,prometheus management.endpoint.health.show-details=always management.endpoint.health.access=unrestricted management.endpoint.prometheus.access=unrestricted management.prometheus.metrics.export.enabled=true
??
management.endpoints.web.exposure.include=health,metrics,circuitbreakers,prometheus
? ?? Actuator? URI? ????? ??? ?? URI? ??? ? ????.
- ?????/
- ?????/??,
- ?????/????,
- ?????/?? ???,
- ?????/??????
??? ?? ?????? ????
docker-compose.yaml ???? prometheus? ?? ???? ?????.
<dependency> <groupId>io.github.resilience4j</groupId> <artifactId>resilience4j-micrometer</artifactId> <version>2.2.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> <version>1.14.1</version> </dependency>
?????? ?? ??
???? ??? prometheus?? ??? ??? ? ?? prometheus.yaml??? ??? ????
resilience4j.circuitbreaker.metrics.enabled=true management.health.circuitbreakers.enabled=true management.endpoints.web.exposure.include=health,metrics,circuitbreakers,prometheus management.endpoint.health.show-details=always management.endpoint.health.access=unrestricted management.endpoint.prometheus.access=unrestricted management.prometheus.metrics.export.enabled=true
?? ????:
prometheus: image: prom/prometheus:latest ports: - "9090:9090" networks: - app_network volumes: - ./prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml - prometheus_data:/prometheus
prometheus ????? ???? URI ?????? ????/spring-boot-servers? ????? ?????.
http://localhost:9090/?? ????? ? ? ????. ?? ?? ??? ????.
??? ?? ????. ???? ?? ??? Grafana? ?????.
???? ??
Docker Compose ??? ?? ???? ???????.
global: scrape_interval: 15s evaluation_interval: 15s scrape_configs: - job_name: 'spring-boot-app' metrics_path: '/actuator/prometheus' static_configs: - targets: - 'spring-server-1:8080' - 'spring-server-2:8080' labels: environment: development application: spring-boot
?? http://localhost:3000?? grafana ????? ???? ? ????
?? ?? ??? ????. ???? ????? admin??? ?????.
?????? ??
?? ?? ???? ?? > ??? ??? ???? Prometheus? ?????
??? ?? ?? URL? ?????.
?? ? ??? ??? ?????. ?? ?? ???? ????? ??? ? ????.
????
Grafana ????? ???? ??? ????? ?????.
?? ?? ?? Spring Boot Resilience4j Circuit Breaker(3.x)? ??????
?? ?? ??? ???? ??? ?? ??? ?????.
?? ????? ???? ?????.
??? ???
Actuator, Prometheus ? Grafana? ??????? ?????? ??? ???? ??? ???? ???? ? ? ??? ??????. ????, ??, ????? ?? ??? ??? ? ????.
- ??????? ???? ?? ??? ???? ?????.
- ??? ??? ???? ?????.
- ??? ???? ??????.
??? ??? ???? ???? ????? ????? ?? ??? ?? ?? ?? ??? ? ?? ??? ??? ? ????.
? ??
- ???? ??
- ?????? ??
? ???? ???
- Github? ???? ???
? ??? ?? ??
- ????
- ???
- ?????
? ??? Actuator, Prometheus ? Grafana? ???? ?? ??????? ?? ??? ? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ?? ?? ??? ??? ?? ??? ??, ? ? ?? ? ??? ?????. 1. ??? ?? ???? ?? ???? ???-????, ? ??? ??? ??? ? ????, Hashmap? ???-??? ?? ??? ??? ???? ????. 2. NULL ? ?? ???? HashMap? ??? NULL ?? ?? ? ?? ???? ?? HashTable? NULL ?? ?? ???? ??? NullPointerException? ?????. 3. ????? ??? ????? ?? ??? ?? ?? ? ????? HashTable? ? ??? ?? ?? ??? ????. ?? ConcurrenTashMap? ???? ?? ????.

Java? ?? ??? ??? ?? ??? ??? ?? ??? ??? ?? ??? ?? ?? ??? ???? ??? ?? ???? ?????. 1. ??? ???? ??? ?? ?? ? ???? ?? ??? ???? ?? ?? ??? ? ????. 2. ???? ?? ??? ???? ??? ?? ???? ?? ?? ??? ???????. 3. ?? ???? ?? ?? ?? ? ???? ???? ?? NULL ?? ??? ? ????. 4. ?? ???? ??? ?? ?? ? ??? ?????? ?? ??? ??? ?? ?? ??? ????? ??? ??? ??? ??????? ?? ???? ??????.

JIT ????? ??? ???, ??? ?? ? ???, ?? ?? ? ???? ? ? ?? ?? ??? ? ?? ??? ?? ??? ??????. 1. ??? ???? ?? ?? ??? ??? ?? ?? ???? ??? ?? ?????. 2. ??? ?? ? ??? ?? ?? ? ??? ???? ?? ?? ???; 3. ?? ??? ??? ?? ??? ???? ???? ???? ? ?? ?? ??? ?????. 4. ?? ??? ?? ??? ??? ???? ???? ?? ? ??? ???? ?? ??? ?????.

staticmethodsininterfaceswereIntRectionSelffacesswithinteffaceswithinteffaceswithintintinjava8toallowutilityFunctionswithinterfaceitswithinteffaceswithinterfaceffaces

???? ??? ??? Java?? ??? ?? ???? ??? ?? ? ? ??? ??? ???? ? ?????. ?? ???? ??? ??, ??? ?? ??? ?? ?? ??? ??? ????? ???? ????? ?????. ?? ??? ??? ??, ????? ? ??? ????, ?? ??? ??? ?????? ? ?? ? ?? ?????.

??? ??? ?? ?? ??? ????? ? ???? ????? ???? ?? ???? ?? ???? ?????. ?? ??? ??? ????. ?? ?? ?? ??? ???? ???? ?? ?? ??? ??? ?? ?? ??? ??? ?????. ?? ??? ??? ????. ?? ??? ?? ??? ?? ?? ??? ?? ?? ??? ???? NewClass ()? ??? ?? ???? ????. ?? ??? ?? ??? ???? ?? ??? ?? ? ? ??? ?? ?? ??? ????? ????? ?????. ?? ??, ?? ?????? ?????, ??? ? ?? ????? ??? ?? ?????. ???? ?? ?? ??? ???? ?? ???? ?? ? ??? ???? ?? ??? ?? ?????? ?????. ???? ???? ??? ??, ?? ?? ? ?? ??? ????, ?? ?? ???? ?????.

injava, thefinalkeywordpreventsavariable'svalue'svalueffrombeingchangedafterassignment, butitsbehaviordiffersforprimitivesandobjectreences.forprimitivevariables, asinfinalintmax_speed = 100; wherereassoncesanerror.forobjectref

??? ? ?? ??? ???? : ????? ?? ?. 1. int? ???? ???? ?? ?? ?? ? ??? ???? ?????. 2. ?? ? ???? (int) myDouble ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.
