StatsD is the default & specimen plugin for Goose. Plugins can be customized by implementing Metrics protocol.
StatsD is the default & specimen plugin for Goose. Plugins can be customized by implementing Metrics protocol.
Map of sample config for StatsD Metric Backend.
:enabled?
: Boolean flag for enabling/disabling metrics.
:host
: Host of StatsD Aggregator.
:port
: Port of StatsD Aggregator.
:prefix
: Prefix for all metrics.
Can be a generic term like "goose."
or specific to microservice name.
:sample-rate
: Sample rate of metric collection.
:tags
: Map of key-value pairs to be attached to every metric.
Map of sample config for StatsD Metric Backend. ### Keys `:enabled?` : Boolean flag for enabling/disabling metrics. `:host` : Host of StatsD Aggregator. `:port` : Port of StatsD Aggregator. `:prefix` : Prefix for all metrics.\ Can be a generic term like `"goose."` or specific to microservice name. `:sample-rate` : Sample rate of metric collection. `:tags` : Map of key-value pairs to be attached to every metric.
(new {:keys [enabled? host port prefix] :as opts})
Creates a Metrics implementation for StatsD Backend.
opts
: Map of :enabled?
, :host
, :port
, :prefix
, :sample-rate
& :tags
.
Example : default-opts
Creates a Metrics implementation for StatsD Backend. ### Args `opts` : Map of `:enabled?`, `:host`, `:port`, `:prefix`, `:sample-rate` & `:tags`.\ Example : [[default-opts]] - [Monitoring & Alerting wiki](https://github.com/nilenso/goose/wiki/Monitoring-&-Alerting)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close