-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
This issue documents the possible execution phases of monitors in relation to the life cycle of collectors.
We identify three different life cycles:
- Start of load: the monitor life cycle should occur before the start of the collector life cycle;
- End of load: the monitor life cycle should occur before the end of the collector life cycle;
- Entire load: the monitor life cycle should start before the start of the collector lifecycle, and end just before the end of the collector life cycle, to monitor during the entire load phase.
In practical terms, this translates to different possible orderings of API calls for monitors and collectors.
Start of load
In driver @OnceBefore
monitor:startmonitor:monitormonitor:stopcollector:start
End of load
In driver @OnceAfter
monitor:startmonitor:monitormonitor:stopcollector:stop
Entire load
In driver @OnceBefore
monitor:startcollector:start
In driver @OnceAfter
monitor:monitormonitor:stopcollector:stop