forked from yangxiufeng666/Micro-Service-Skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66efaa2
commit 1495e17
Showing
4 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
server: | ||
port: 9050 | ||
spring: | ||
application: | ||
name: micro-service-monitor | ||
eureka: | ||
instance: | ||
prefer-ip-address: true #使用IP注册 | ||
instance-id: ${spring.cloud.client.ipAddress}:${server.port} | ||
lease-renewal-interval-in-seconds: 5 ##为了能够快速删除 | ||
lease-expiration-duration-in-seconds: 10 ##为了能够快速删除 | ||
client: | ||
service-url: | ||
defaultZone: http://register1:9010/eureka/,http://register2:9011/eureka/ | ||
|
||
###actuator监控点 start#### | ||
endpoints: | ||
health: | ||
sensitive: false | ||
enabled: true | ||
##默认情况下很多端点是不允许访问的,会返回401:Unauthorized | ||
management: | ||
security: | ||
enabled: false | ||
###actuator监控点 end#### | ||
turbine: | ||
app-config-list: micro-a-service | ||
cluster-name-expression: "'default'" |