package prometheus-app
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Client library for Prometheus monitoring
Install
dune-project
Dependency
Authors
Maintainers
Sources
prometheus-1.4.tbz
sha256=e63ea943ccf903ca49238ba28bd963c3e5358f4f22466dd3749da830f0ec2d31
sha512=d7bbaf2fea7334c42e2981ed1ed939966e121865d2e89d42c323cb0f6054b06becfcb012c2342fa73c2eb6e181e52670caf3601be08f1e51809fbda92ea928e5
doc/prometheus-app.unix/Prometheus_unix/Logging/index.html
Module Prometheus_unix.LoggingSource
Report metrics for messages logged.
Source
val init :
?default_level:Logs.level ->
?levels:(string * Logs.level) list ->
?formatter:Format.formatter ->
unit ->
unitInitialise the Logs library with a reporter that reports prometheus metrics too. The reporter is configured to log to stderr and the log messages include a timestamp and the event's source.
A server will typically use the following code to initialise logging:
let () = Prometheus_app.Logging.init ()Or:
let () =
Prometheus_unix.Logging.init ()
~default_level:Logs.Debug
~levels:[
"cohttp.lwt.io", Logs.Info;
]inc_counter level src increments the count of messages logged by src at level. The reporter installed by init calls this automatically, but you might want to use this if you use your own reporter instead.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>