|
@@ -129,11 +129,10 @@ failure_route[tryagain] {
|
|
|
3.2. statsd_gauge(key, value)
|
|
|
|
|
|
Gauges are a constant data type. They are not subject to averaging and
|
|
|
- they donât change unless you change them. That is, once you set a
|
|
|
- gauge value, it will be a flat line on the graph until you change it
|
|
|
- again.
|
|
|
+ they don't change unless you change them. That is, once you set a gauge
|
|
|
+ value, it will be a flat line on the graph until you change it again.
|
|
|
|
|
|
- Gauges are useful for things that are already averaged, or donât need
|
|
|
+ Gauges are useful for things that are already averaged, or don't need
|
|
|
to reset periodically
|
|
|
|
|
|
This function can be used in ALL ROUTES.
|
|
@@ -141,10 +140,12 @@ failure_route[tryagain] {
|
|
|
The statsd server collects gauges under the stats.gauges prefix.
|
|
|
|
|
|
Example 1.4. statsd_set usage
|
|
|
+...
|
|
|
route [gauge_method]{
|
|
|
statsd_gauge("method"+$rm, "+1");
|
|
|
statsd_gauge("customer_credit"+$var(customer),"$var(customer_credit)");
|
|
|
}
|
|
|
+...
|
|
|
|
|
|
3.3. statsd_start(key)
|
|
|
|
|
@@ -158,7 +159,7 @@ route [gauge_method]{
|
|
|
The statsd server collects all timers under the stats.timers prefix and
|
|
|
will calculate the lower bound, mean, 90th percentile, upper bound, and
|
|
|
count of each timer for each period (by the time it can be seen in
|
|
|
- graphite, thatâs usually per minute).
|
|
|
+ graphite, that's usually per minute).
|
|
|
|
|
|
Example 1.5. statsd_start usage
|
|
|
...
|
|
@@ -205,6 +206,6 @@ if(geoip_match("$si", "src")){
|
|
|
...
|
|
|
if (t_check_status("408")) {
|
|
|
statsd_decr("kamailio.successfulCalls");
|
|
|
- statsd_incr("kamailio.reply.busy");
|
|
|
+ statsd_incr("kamailio.reply.timeout");
|
|
|
}
|
|
|
...
|