package devkit
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=222f8ac131b1d970dab7eeb2714bfd6b9338b88b1082e6e01c136ae19e7eaef4
sha512=c9e6d93e3d21e5530c0f4d5baca51bf1f0a5d19248f8af7678d0665bb5cdf295d7aaaaa3e50eb2e44b8720e55097cc675af4dc8ec45acf9da39feb3eae1405d5
doc/devkit.core/Devkit_core/Var/index.html
Module Devkit_core.VarSource
Global register for various types of counters. Logstash module will send all Var counters to logstash automatically. Counters must be mononotonically increasing for logstash to send correct deltas to Elasticsearch.
new typ type ?attr key registers new type of counters with designated attributes and key name
cc pp type ?attr key new set of counters with designated type, attributes and key name
Logstash events will have attributes as follows : * all of attr key value pairs (if given) * class=type * key=X where X is value inserted into CC
Guidelines for picking names : keep number of different key names low (makes ES happy), uniqueness of events is primarily provided by class.
Bad example : let pages = new Var.cc "tool.pages" "pages" let index = new Var.cc "tool.index" "index" let count = new Var.cc "tool.count" "count"
Better : let pages = new Var.cc "tool.pages" "kind" let pages = new Var.cc "tool.index" "kind" let pages = new Var.cc "tool.count" "kind"
cc pp type ?attr key new set of counters with designated type, attributes and key name, treated as milliseconds
callback takes attributes and value
list_stats filter