(def client (configure {:endpoint "localhost:8125"}))
Total value/rate:
(increment! client :chat.request/count 1) (decrement! client :chat.request/count 1)
In-the-moment value:
(gauge! client :chat.ws.connections 17)
Values distribution (mean, avg, max, percentiles):
(histogram! client :chat.request/time 188.17) (distribution! client :chat.request/time 188.17)
Counting unique values:
(set! client :chat.user/email "nikita@mailforspam.com")
Supported opts (third argument):
{ :tags => [String+] | { Keyword -> Any | Nil } :sample-rate => Double[0..1] }
E.g. (increment! client :chat.request/count 1 { :tags { :env "production", :chat nil } ;; => |#env:production,chat :tags [ "env:production" "chat" ] ;; => |#env:production,chat :sample-rate 0.5 } ;; Throttling 50%
(def client (configure {:endpoint "localhost:8125"}))
Total value/rate:
(increment! client :chat.request/count 1)
(decrement! client :chat.request/count 1)
In-the-moment value:
(gauge! client :chat.ws.connections 17)
Values distribution (mean, avg, max, percentiles):
(histogram! client :chat.request/time 188.17)
(distribution! client :chat.request/time 188.17)
Counting unique values:
(set! client :chat.user/email "nikita@mailforspam.com")
Supported opts (third argument):
{ :tags => [String+] | { Keyword -> Any | Nil }
:sample-rate => Double[0..1] }
E.g. (increment! client :chat.request/count 1
{ :tags { :env "production", :chat nil } ;; => |#env:production,chat
:tags [ "env:production" "chat" ] ;; => |#env:production,chat
:sample-rate 0.5 } ;; Throttling 50%cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |