kyuubi/kyuubi-metrics
huzk 3108c8e1a5
[KYUUBI #4796] Expose JVM attributes to metrics
### _Why are the changes needed?_

related issue : #2526
i  just  make the grafana dashboard of kyuubi , but i can not get the metrics of kyuubi server start time.

![图片](https://user-images.githubusercontent.com/18548053/236595754-b839e608-a087-43e6-8c31-9b6639e94138.png)

we can add JvmAttributeGaugeSet to get the uptime metrics of kyuubi .

![图片](https://user-images.githubusercontent.com/18548053/236595818-d0b6958d-f660-403f-8f72-a1ef6f679383.png)

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4796 from Kyofin/master.

Closes #4796

ba1de910c [Cheng Pan] Update kyuubi-metrics/src/main/scala/org/apache/kyuubi/metrics/MetricsSystem.scala
e2f15a6ee [Cheng Pan] Update kyuubi-metrics/src/main/scala/org/apache/kyuubi/metrics/MetricsConstants.scala
665552028 [huzk] add jvm metrics

Lead-authored-by: huzk <1040080742@qq.com>
Co-authored-by: Cheng Pan <pan3793@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2023-05-06 14:10:39 +08:00
..
src [KYUUBI #4796] Expose JVM attributes to metrics 2023-05-06 14:10:39 +08:00
pom.xml Bump 1.8.0-SNAPSHOT 2023-02-10 15:25:49 +08:00