You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/10/30 03:46:04 UTC

[GitHub] vanlin opened a new issue #974: metrics-prometheus 适配 prometheus-2.x出错

vanlin opened a new issue #974: metrics-prometheus 适配 prometheus-2.x出错
URL: https://github.com/apache/incubator-servicecomb-java-chassis/issues/974
 
 
   ```java
   # PrometheusPublisher 93行
   familySamples.add(new MetricFamilySamples("ServiceComb Metrics", Type.UNTYPED, "ServiceComb Metrics", samples));
   ```
   这里建议将字符串用下划下连接起来,否则 prometheus 会将 Metrics untyped 识别为  Metrics type,导致处理出错
   
   ```java
   # PrometheusPublisher 93行
   familySamples.add(new MetricFamilySamples("ServiceComb_Metrics", Type.UNTYPED, "ServiceComb_Metrics", samples));
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services