Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/zioPublic

How to expose ZIO executor metrics?#9257

Unanswered
jamesbassett asked this question inQ&A
Oct 23, 2024· 1 comments· 2 replies
Discussion options

I'm trying to expose the metrics of the ZIO executor (i.e.these ones) via prometheus so we can better understand how ZIO is performing.

I can't see any reference to these anywhere, and even searching for code references can only see them being used by the now deprecatedZMX project.

I realise they're internal, but are these intended to be used at all? I was expecting them to be exposed withOpenTelemetry.zioMetrics but they are not.

Otherwise I'll likely have to use Micrometer'sExecutorServiceMetrics.monitor

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

They are not exposed as ZIO metrics, but you can access them by callingZIO.executor and then themetrics method.

There are other internal metrics that are exposed:

valfiberFailureCauses=Metric.frequency("zio_fiber_failure_causes")

You must be logged in to vote
2 replies
@jamesbassett
Comment options

Thanks, I'm using those other internal ones (they're exposed withOpenTelemetry.zioMetrics from zio opentelemetry).

Is there any plans to expose these executor metrics at all?

For now I'm using Micrometer'sExecutorServiceMetrics.monitor to expose the thread pool metrics for the main and blocking executors, which is roughly the same info.

@ghostdogpr
Comment options

There is no particular plan AFAIK. I think if someone did a PR to add them, it would be okay as long as it doesn't impact performance.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@jamesbassett@ghostdogpr

[8]ページ先頭

©2009-2025 Movatter.jp