(send-metric connection-map metric-name type value & [tags])Sends the metric value to dogstatsD.
Params
| name | type | description
| ---- | ---- | ----------
| connection-map | map | Map containing the host and port which the metric will be sent.
| metric-name | string | The name of metric, kebab case is converted to snake case in the dd metric panel
| type | string | Metric type, allowed values: increment, decrement, timing, gauge
| value | int | Integer value for the metric.
| tags | map | Map containing the tags for the metric
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.
**Params**
| name | type | description
| ---- | ---- | ----------
| `connection-map` | `map` | Map containing the host and port which the metric will be sent.
| `metric-name` | `string` | The name of metric, kebab case is converted to snake case in the dd metric panel
| `type` | `string` | Metric type, allowed values: `increment`, `decrement`, `timing`, `gauge`
| `value` | `int` | Integer value for the metric.
| `tags` | `map` | Map containing the tags for the metric
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"})
```
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 |