Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix prometheusMetrics export contains " bug (apache#5605)
when i use Oracle JDK 10.0.2,the broker metrics `jvm_info` will export as follow: ``` # TYPE jvm_info gauge jvm_info{cluster="pulsar-cluster-zk",version="10.0.2+13",vendor=""Oracle Corporation"",runtime="Java(TM) SE Runtime Environment"} 1.0 ``` and then prometheus will failed when parsing `""Oracle Corporation""` ![image](https://user-images.githubusercontent.com/5436568/68560255-41398a80-047b-11ea-9fcb-b79d748a353d.png) The Reason is when using `io.prometheus:simpleclient:0.5.0` to collect jvm info, it returns jvm vendor with `"Oracle Corporation"`, and in the Pulsar source code, it adds `"` in both sides, so it comming with `vendor=""Oracle Corporation""`, and prometheus parse failed.
- Loading branch information