package devkit
Install
Dune Dependency
Authors
Maintainers
Sources
md5=00995ebead339d6ec1ba7859c3fc3a58
sha256=5ad39c7fa1a966a2f0a7f6dbb7e82c787439c73482f5f44b3c9fb54b040d36eb
sha512=8dd3f7d4aaabae9aa9ede13edee2b22214c0d2e2780bb08b2ca8ed588d74fc6d9b1908bb31dfee49c949c7cc425fb98897b8e0f11280070ebd99b965908ea133
doc/devkit.core/Devkit_core/Var/index.html
Module Devkit_core.Var
Source
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 attr
ibutes and key
name
cc pp type ?attr key
new set of counters with designated type
, attr
ibutes 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
, attr
ibutes and key
name, treated as milliseconds
callback takes attributes and value
list_stats filter