Expand description
Expose, as metrics, how far each out-of-process log consumer trails the newest data in the directories to which this node writes logs.
A directory holding more than one log stream, such as several writers with distinct suffixes sharing one directory, is unsupported: the scan counts every segment matching the pattern, regardless of which writer produced it, so a consumer reading only one of the streams is reported against the combined backlog of all of them.
Structs§
- Writer
Location - The location of the segments produced by a writer.
Functions§
- register_
location - Add
locationto the monitored set and start the monitor if it is not already running. Registering the same location more than once, including when a configuration reload re-registers the same directory, has the same effect as registering it once. A location is monitored for the lifetime of the process. A location cannot be deregistered. - set_
scan_ interval - Set how often the monitor rescans registered locations, effective on its next cycle.
- start_
monitor - Start the background monitor thread if it is not already running.