Skip to main content

Module monitor

Module monitor 

Source
Expand description

The charts of one queue (doc 34, TUI-MON-*, TUI-MSG-11): Enter on a topic opens three charts stacked on a common time axis. Each reading of GET /stats/topics/{name} becomes one point per line; the history is only what was sampled since the charts were opened.

  1. the messages that are visible and those that are invisible (delivered and waiting for their ack);
  2. the flow: published, delivered and acknowledged (deleted) per second;
  3. the age of the oldest message of the queue and of its largest groups.

Modules§

view
The drawing of the charts of a queue: three line charts stacked on one time axis, each with its legend and the current value of every line in its title.

Structs§

ChartDef
What a chart draws: a title and its lines (a key into TopicMonitor::series and the catalog key of the legend).
LineDef
A line of a chart: its series key and its legend text.

Constants§

CHARTS
MAX_GROUPS
The most groups drawn in the chart of ages.

Functions§

export_csv
The visible lines of the three charts as CSV (TUI-MON-07): the time in UTC and one column per line.
line_points
The points of a line: the window, up to the instant the chart was frozen at.
lines_of
The lines of a chart now: the fixed ones, then one per group being followed.
on_action
The keys of an open topic dialog: Esc closes it, the rest are those of the view being shown.
open
Enter (the charts) or x (the messages) on the list: opens the selected topic. A distributor has no queue, so it has no charts: only its messages can be opened, to publish.
record
Keeps a reading: one point per line. A queue with no messages has an oldest age of zero; a group that is not in the reading leaves a gap.
window_ms
The window in milliseconds, never above what the history retains (TUI-MON-03).