Mesmer (version 0.8.0) - How to collect Default-JVM-Metrics from ZIO 2.0.0 Apps #458
ghost
started this conversation in
Show and tell
Replies: 3 comments 1 reply
-
CC @lgajowy and @worekleszczy |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ronaldSC-2022 we recently merged zio counters and gauges collection. If you run mesmer from main branch with the forkenstein app (that has the default jvm metrics enabled) doesn't it collect the counters and gauges? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I confirm that we get them forwarded to otel: Great stuff :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This Mesmer Discussion is related to this "Mesmer Research Task (#424)".
I will be answering the following questions from #424:
1) Figure out how to turn on Jvm metrics collection
In the User's ZIO 2.0 App, make sure that this ZIO App has the following two lines added in the code: https://github.com/zio/zio-metrics-connectors/blob/zio/series2.x/core/jvm/src/test/scala/zio/metrics/connectors/SampleApp.scala#L69-L70
Both
Runtime.enableRuntimeMetrics
areDefaultJvmMetrics.live.unit
needed, in order to enable the ZIO internal metrics and the default JVM metricsConfig.2. "If it works with few configuration needed, explain how to do it in mesmer documentation so that users can see those thanks to Mesmer as well"
Beta Was this translation helpful? Give feedback.
All reactions