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-v1.0.tbz
sha256=d17cec111516fa188d4a41add0c6c1f0dba1bc9ca4aa53c52cc9be21019aac26
sha512=be54f970d9397e2f338fe30bcd463ae1b11d9337027290ec272d7a9f8cceea8b8907d6d1ccb5708f0378810b7df13d598bbed461a8e37b145435a3e66f733956
doc/prometheus-app.unix/Prometheus_unix/Logging/index.html
Module Prometheus_unix.LoggingSource
Report metrics for messages logged.
Initialise 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)"
>