res_statsd: handle non-standard meter type safely

Meter types are not well supported,
lacking support in telegraf, datadog and the official statsd servers.
We deprecate meters and provide a compliant fallback for any existing usages.

A flag has been introduced to allow meters to fallback to counters.


ASTERISK-29513

Change-Id: I5fcb385983a1b88f03696ff30a26b55c546a1dd7
This commit is contained in:
Rijnhard Hessel
2021-07-08 14:34:27 +02:00
committed by Friendly Automation
parent fa7d147e1b
commit 728a52fb61
4 changed files with 28 additions and 2 deletions

View File

@@ -6,3 +6,6 @@
;add_newline = no ; Append a newline to every event. This is
; useful if you want to run a fake statsd
; server using netcat (nc -lu 8125)
;meter_support = yes ; Enable/disable the non-standard StatsD Meter type
; if disabled falls back to counter
; and will append a "_meter" suffix to the metric name