Liking cljdoc? Tell your friends :D
Clojure only.

ddstatsd-clj.core


send-metricclj

(send-metric connection-map metric-name type value & [tags])

Sends the metric value to dogstatsD.

Example:

(def connection-map {:host "localhost" :port 8125})

;; Metric without any tag
(send-metric connection-map "my_super_metric.count" "increment" 1)

;; Metric with some tag
(send-metric connection-map "my_another_super_metric.count" "increment" 10 {:env "production"})
 Sends the metric value to dogstatsD.

Example:
```clojure
(def connection-map {:host "localhost" :port 8125})

;; Metric without any tag
(send-metric connection-map "my_super_metric.count" "increment" 1)

;; Metric with some tag
(send-metric connection-map "my_another_super_metric.count" "increment" 10 {:env "production"})
```
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close