Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
micro_app
gk
Commits
666b78d2
Commit
666b78d2
authored
Oct 11, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Prometheus): 新增服务监控
parent
a4c7907a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
pom.xml
pom.xml
+12
-0
application-dev.properties
src/main/resources/application-dev.properties
+9
-2
application-production.properties
src/main/resources/application-production.properties
+4
-0
No files found.
pom.xml
View file @
666b78d2
...
...
@@ -76,6 +76,18 @@
<artifactId>
pagehelper-spring-boot-starter
</artifactId>
<version>
2.1.0
</version>
</dependency>
<!-- prometheus -->
<!-- Spring Boot Actuator -->
<!-- Micrometer 核心依赖 -->
<dependency>
<groupId>
io.micrometer
</groupId>
<artifactId>
micrometer-core
</artifactId>
</dependency>
<!-- Micrometer Prometheus 注册表 -->
<dependency>
<groupId>
io.micrometer
</groupId>
<artifactId>
micrometer-registry-prometheus
</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper -->
<!-- <dependency>-->
...
...
src/main/resources/application-dev.properties
View file @
666b78d2
...
...
@@ -73,8 +73,6 @@ spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-request-size
=
50Mb
spring.application.name
=
micro-gksite
management.endpoints.web.exposure.include
=
*
#feign调用连接超时时间
feign.client.config.default.connect-timeout
=
30000
#feign调用读取超时时间
...
...
@@ -125,3 +123,12 @@ lock.categoryId=2816977402314363323
lock.companyReceiver
=
18201908070
upload.rmi
=
rmi://172.16.214.236:9125/RMIUpload
# prometheus
# prometheus ??
management.endpoints.web.exposure.include
=
*
management.server.port
=
9807
management.metrics.export.prometheus.enabled
=
false
src/main/resources/application-production.properties
View file @
666b78d2
...
...
@@ -120,3 +120,7 @@ lock.categoryId=2816977402314363323
lock.companyReceiver
=
18201908070
upload.rmi
=
rmi://192.168.214.238:9125/RMIUpload
management.endpoints.web.exposure.include
=
*
management.server.port
=
9807
management.metrics.export.prometheus.enabled
=
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment