Statsd module
editStatsd module
editThe statsd
module is a Metricbeat module which spawns a UDP server and listens for metrics in StatsD compatible
format.
Metric types
editThe module supports the following types of metrics:
- Counter (c)
- Measurement which accumulates over period of time until flushed (value set to 0).
- Gauge (g)
- Measurement which can increase, decrease or be set to a value.
- Timer (ms)
- Time measurement (in milliseconds) of an event.
- Histogram (h)
- Time measurement, alias for timer.
- Set (s)
- Measurement which counts unique occurrences until flushed (value set to 0).
Supported tag extensions
editExample of tag styles supported by the statsd
module:
<metric name>:<value>|<type>|@samplerate|#<k>:<v>,<k>:<v>
<metric name>,<k>=<v>,<k>=<v>:<value>|<type>|@samplerate
<metric name>;<k>=<v>;<k>=<v>:<value>|<type>|@samplerate
Module-specific configuration notes
editThe statsd
module has these additional config options:
-
ttl
- It defines how long a metric will be reported after it was last recorded. Irrespective of the given ttl, metrics will be reported at least once. A ttl of zero means metrics will never expire.
-
statsd.mapping
- It defines how metrics will mapped from the original metric label to the event json. Here’s an example configuration:
statsd.mappings: - metric: 'ti_failures' value: field: task_failures - metric: '<job_name>_start' labels: - attr: job_name field: job_name value: field: started
|
|
|
|
|
|
|