Support ScheduledExecutorService per-execution monitoring
See original GitHub issueHi!
The latest version of Micrometer (1.1.0) supports per-execution ExecutorService
monitoring via TimedExecutorService
.
In Project Reactor, we use ScheduledExecutorService
(extended version of ExecutorService
).
Would be nice if Micrometer will add it to ExecutorServiceMetrics
, so that we can transparently reuse the infrastructure provided by Micrometer.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Continuous Monitoring of a function in Java on a single thread
1 Answer 1 ... Make use of scheduleAtFixedRate's method of ScheduledExecutorService method in order to execute the task at regular intervals ...
Read more >ScheduledExecutorService (Java Platform SE 7 )
An ExecutorService that can schedule commands to run after a given delay, or to execute periodically. The schedule methods create tasks with various...
Read more >InstrumentedScheduledExecutor...
An ScheduledExecutorService that monitors the number of tasks submitted, running, completed and also keeps a Timer for the task duration.
Read more >Scheduled Executor Service
ScheduledExecutorService , partially. By partially, we mean the behavior difference in scheduling a task at a fixed rate ( scheduleAtFixedRate() ). Hazelcast's ...
Read more >Java Tips: Creating a Monitoring-Friendly ExecutorService
This monitoring capability will help us to measure a number of pool parameters i.e., active threads, work queue size etc. in a live...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My understanding is that timed submitted tasks within
ExecutorService
implies a micrometer strategy that uses a wrapping executor withTimedExecutorService
.Therefore I guess that just using current
ExecutorService
instrumentation leave someScheduledExecutorService
mehods that submit tasks without being wrapped withTimer
. MethodsScheduledExecutorService
.schedule
,scheduleAtFixedRate
andscheduleWithFixedDelay
doesn’t submit a task wrapped withTimer
.Also an
ExecutorServiceMetrics.monitor
specialized forScheduledExecutorService
would be nice.I have a WIP branch on https://github.com/slovdahl/micrometer/tree/scheduled-executor-service-timings, I’ll submit a PR tomorrow unless there are any objections.