Jilles van Gurp
08/23/2025, 8:15 AMkotlin.time
integration, and minimal ceremony.
• JVM support via Micrometer: seamlessly plugs into existing Micrometer MeterRegistry
. A multiplatform SimpleMeterRegistry implementing the same IMeterRegistry
is provided. So, easy to extend and adapt this.
• Snapshots & exporting: emit Prometheus or OTLP-compatible snapshots from any platform. I have not tested this extensively yet but seems to work.
• Multiplatform: works across JVM, JS, Native, iOS, Android, WASM, etc.
That's it. Useful enough that people might want to use it or take it further. It might have some bugs but so far so good.
I'm planning to use this to propagate client metrics in kotlin-js. I've instrumented my ktor client API client with this so I can measure all the API calls. And I've done some quick tests with exporting prometheus metrics for our integration tests. All seems to work.
It also seems to be nice as a wrapper around micrometer when used on the JVM.