Add StatsD transport protocol configuration option

See gh-22125
This commit is contained in:
Lee Dobryden
2020-06-26 16:21:20 -04:00
committed by Andy Wilkinson
parent 5de67e9b06
commit 5d41f60e45
5 changed files with 27 additions and 1 deletions

View File

@@ -1764,12 +1764,13 @@ You can also change the interval at which metrics are sent to Stackdriver:
==== StatsD
The StatsD registry pushes metrics over UDP to a StatsD agent eagerly.
By default, metrics are exported to a {micrometer-registry-docs}/statsd[StatsD] agent running on your local machine.
The StatsD agent host and port to use can be provided using:
The StatsD agent host,port, and protocol to use can be provided using:
[source,properties,indent=0,configprops]
----
management.metrics.export.statsd.host=statsd.example.com
management.metrics.export.statsd.port=9125
management.metrics.export.statsd.protocol=udp
----
You can also change the StatsD line protocol to use (default to Datadog):