Hog.TelemetryEvents (Hog v0.1.0)

View Source

This module provides helpers for dealing with the telemetry events emitted by the Hog library.

Summary

Functions

This event is emitted when a process surpasses the memory threshold. It contains the following measurements and metadata

Functions

attach_memory_threshold_surpassed_handler(handler_function)

emit_memory_threshold_surpassed_event(process_memory, pid, process_info, current_monotonic_time)

This event is emitted when a process surpasses the memory threshold. It contains the following measurements and metadata:

#### Measurements

  • :process_memory — the amount of memory consumed by the process (in bytes)

Metadata

  • :process_info - all of the information about the process that exceeded the memory threshold as configured when starting the Hog process.
  • :pid — the PID of the offending process
  • :current_monotonic_time — the monotonic time when the exceeded memory threshold was detected
  • :timestamp - the timestamp when the exceeded memory threshold was detected