同步操作将从 open-hand/choerodon-starters 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The metric toolkit is used to collect the information of jvm while the microservice program is running.
Add richer thread group monitoring capabilities to future plans.
References in pom.xml
of microservices.
<dependency>
<groupId>io.choerodon</groupId>
<artifactId>choerodon-starter-metric</artifactId>
<version>0.10.1.RELEASE</version>
</dependency>
To start up the monitoring of prometheus.
git clone https://github.com/choerodon/choerodon-starters.git
cd choerodon-starter-metric
Microservices can be monitored after being referenced.
ofio.micrometer
version 1.0.2
for the collection of jvm information.spring.factories
, the file is injected and the citation takes effect./prometheus
endpoint of the program monitoring port that references the package.io.micrometer 1.0.2
If you don't want this function, you can disable this by set following properties:
metric:
enabled: false
management:
metrics:
export:
prometheus:
enabled: false
binders:
jvm:
enabled: false
logback:
enabled: false
uptime:
enabled: false
processor:
enabled: false
files:
enabled: false
And the endpoint /premetheus
won't be found any more and the beans will not be created.
If you want to set just one property to disable it, maybe you should just copy those above to your application and make them read the property from a certain system environment variable like this:
metric:
enabled: ${enabled:true}
management:
metrics:
export:
prometheus:
enabled: ${enabled:true}
binders:
jvm:
enabled: ${enabled:true}
logback:
enabled: ${enabled:true}
uptime:
enabled: ${enabled:true}
processor:
enabled: ${enabled:true}
files:
enabled: ${enabled:true}
And the property metric.enabled
is to disable Metric configuration and the others are to disable the beans
and configurations from the dependency micrometer-spring-legacy
.
## Reporting Issues
If you find any shortcomings or bugs, please describe them in the Issue.
Pull requests are welcome! Follow this link for more information on how to contribute.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。