With no ability to interact or observe the other side of these keyholes, nanoengineers at the University of Manchester created a swarm intelligent system called the Pathfinder (Goo), its prime directive: Explore, Gather, Report.
- aliens.wikia.com
A wrapper to the Iapetos clojure binding for the prometheus client. XSC did some great work there, however handling the registry in different places in your program appeared a bit cumbersome to us. Goo yields a default-registry in it's state which is used by default for most operations (inc, set...) on collectors.
It's easy. Register a metric ...
(goo/register-counter! :search/products-found {:labels [:category]}) ;; register a counter with a "category" label
... and trigger a change
(goo/inc! :search/products-found {:category "fashion"} 42) ;; increment that counter by 42 while the category is "fashion"
You can register:
(goo/register-counter! :namespaced/name option)
:description
and :labels
(goo/register-summary! :namespaced/name options)
:description
, :labels
and :quantiles
(goo/register-histogram! :namespaced/name options)
:description
, :labels
and :buckets
(goo/register-gauge! :namespaced/name options initial)
:description
and :labels
initial
is a value that the gauge will be set on after initialization(goo/register-callback-gauge! :namespaced/name description callback-fn label-values)
callback-fn
is a sideeffect-free function that can determine the value of the gauge at every given momentlabel-values
holds a map of label with their actual values(goo/register! some-iapetos-metric)
You can trigger:
(goo/inc! :namespaced/name options)
(goo/dec! :namespaced/name options)
(goo/observe! :namespaced/name options)
(goo/update! :namespaced/name options)
Can you improve this documentation? These fine people already did:
Tjark Smalla & Torsten MangnerEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close