add:添加prometheushttp监控
This commit is contained in:
@@ -63,7 +63,15 @@
|
|||||||
<artifactId>ik-analyzer</artifactId>
|
<artifactId>ik-analyzer</artifactId>
|
||||||
<version>8.2.0</version>
|
<version>8.2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!---->
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.micrometer</groupId>
|
||||||
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
|
</dependency>
|
||||||
<!--支持中文分词 -->
|
<!--支持中文分词 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ spring:
|
|||||||
reset-enable: false
|
reset-enable: false
|
||||||
filters:
|
filters:
|
||||||
DruidFilter,stat
|
DruidFilter,stat
|
||||||
# stat:
|
# query-timeout: 1
|
||||||
|
# stat:
|
||||||
# enabled: true
|
# enabled: true
|
||||||
# # 记录慢SQL
|
# # 记录慢SQL
|
||||||
# log-slow-sql: true
|
# log-slow-sql: true
|
||||||
@@ -173,3 +174,20 @@ es:
|
|||||||
lucene:
|
lucene:
|
||||||
index:
|
index:
|
||||||
path: D:\lms\lucene\index
|
path: D:\lms\lucene\index
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: prometheus
|
||||||
|
base-path: /metrics
|
||||||
|
metrics:
|
||||||
|
prometheus:
|
||||||
|
enabled: true
|
||||||
|
enable:
|
||||||
|
process: false
|
||||||
|
integration: false
|
||||||
|
uptime: false
|
||||||
|
jdbc: false
|
||||||
|
system: false
|
||||||
|
jvm: false
|
||||||
|
logback: false
|
||||||
|
|||||||
Reference in New Issue
Block a user