hanahmily commented on a change in pull request #5046:
URL: https://github.com/apache/skywalking/pull/5046#discussion_r451959997



##########
File path: 
oap-server/server-storage-plugin/storage-jdbc-hikaricp-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/jdbc/h2/H2StorageProvider.java
##########
@@ -131,6 +135,9 @@ public void prepare() throws ServiceNotProvidedException, 
ModuleStartException {
 
     @Override
     public void start() throws ServiceNotProvidedException, 
ModuleStartException {
+        MetricsCreator metricCreator = 
getManager().find(TelemetryModule.NAME).provider().getService(MetricsCreator.class);
+        GaugeMetrics healthChecker = 
metricCreator.createHealthCheckerGauge("storage_h2", MetricsTag.EMPTY_KEY, 
MetricsTag.EMPTY_VALUE);
+        healthChecker.setValue(1);

Review comment:
       Fixed with an asyn health check scheduler. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to