Skip to content

Define the possible life cycles of monitors #23

@simonedavico

Description

@simonedavico

This issue documents the possible execution phases of monitors in relation to the life cycle of collectors.

We identify three different life cycles:

  1. Start of load: the monitor life cycle should occur before the start of the collector life cycle;
  2. End of load: the monitor life cycle should occur before the end of the collector life cycle;
  3. 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:start
  • monitor:monitor
  • monitor:stop
  • collector:start

End of load

In driver @OnceAfter
  • monitor:start
  • monitor:monitor
  • monitor:stop
  • collector:stop

Entire load

In driver @OnceBefore
  • monitor:start
  • collector:start
In driver @OnceAfter
  • monitor:monitor
  • monitor:stop
  • collector:stop

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions