community.general.statsd – Send metrics to StatsD¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.statsd
.
New in version 2.1.0: of community.general
Synopsis¶
The
statsd
module sends metrics to StatsD.For more information, see https://statsd-metrics.readthedocs.io/en/latest/.
Supported metric types are
counter
andgauge
. Currently unupported metric types aretimer
,set
, andgaugedelta
.
Parameters¶
Examples¶
- name: Increment the metric my_counter by 1
community.general.statsd:
host: localhost
port: 9125
protocol: tcp
metric: my_counter
metric_type: counter
value: 1
- name: Set the gauge my_gauge to 7
community.general.statsd:
host: localhost
port: 9125
protocol: tcp
metric: my_gauge
metric_type: gauge
value: 7
Authors¶
Mark Mercado (@mamercad)