package mirage-monitoring

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module T : Mirage_time.S

Signature

val create : ?interval:int -> ?quick:bool -> ?hostname:string -> Ipaddr.t -> ?port:int -> ?listen_port:int -> ?memtrace_port:int -> ?sampling_rate:float -> S.t -> unit

create ~interval ~quick ~hostname ip ~port ~listen_port ~memtrace_port ~sampling_rate stack initiates monitoring on stack for the unikernel. The metrics are reported every interval (defaults to 10) seconds to ip on port (defaults to 8094) via TCP using the influxd wire protocol. On listen_port (defaults to 2323) a TCP connection can be initiated to adjust the log level and enable and disable metrics sources. On memtrace_port (defaults to 4242) a single TCP client can connect simultaneously to receive a Gc.Memprof trace. The sampling_rate defaults to 1e-4. If quick is provided and false (defaults to true), Solo5_os.Memory.stat is used, otherwise Solo5_os.Memory.quick_stat is used.

OCaml

Innovation. Community. Security.