<p>Rijnhard Hessel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16149">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_statsd: replace meter type with counter<br><br>ASTERISK-25419<br><br>Change-Id: I5fcb385983a1b88f03696ff30a26b55c546a1dd7<br>---<br>M include/asterisk/statsd.h<br>M res/res_chan_stats.c<br>2 files changed, 2 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/49/16149/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/asterisk/statsd.h b/include/asterisk/statsd.h</span><br><span>index 4dbfb77..aa27c48 100644</span><br><span>--- a/include/asterisk/statsd.h</span><br><span>+++ b/include/asterisk/statsd.h</span><br><span>@@ -41,8 +41,7 @@</span><br><span> #define AST_STATSD_TIMER "ms"</span><br><span> /*! Distribution of values over time. */</span><br><span> #define AST_STATSD_HISTOGRAM "h"</span><br><span style="color: hsl(0, 100%, 40%);">-/*! Events over time. Sorta like increment-only counters. */</span><br><span style="color: hsl(0, 100%, 40%);">-#define AST_STATSD_METER "m"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> </span><br><span> /*!</span><br><span> * \brief Send a stat to the configured statsd server.</span><br><span>diff --git a/res/res_chan_stats.c b/res/res_chan_stats.c</span><br><span>index dbc79f0..446f930 100644</span><br><span>--- a/res/res_chan_stats.c</span><br><span>+++ b/res/res_chan_stats.c</span><br><span>@@ -73,7 +73,7 @@</span><br><span> if (metric) {</span><br><span> ast_str_set(&metric, 0, "stasis.message.%s",</span><br><span> stasis_message_type_name(stasis_message_type(message)));</span><br><span style="color: hsl(0, 100%, 40%);">- ast_statsd_log(ast_str_buffer(metric), AST_STATSD_METER, 1);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_statsd_log(ast_str_buffer(metric), AST_STATSD_COUNTER, 1);</span><br><span> }</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16149">change 16149</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/16149"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I5fcb385983a1b88f03696ff30a26b55c546a1dd7 </div>
<div style="display:none"> Gerrit-Change-Number: 16149 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Rijnhard Hessel <rijnhard@teleforge.co.za> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>