public static function StatsD::gauge in StatsD 6
Same name and namespace in other branches
- 7.2 includes/statsd.inc \StatsD::gauge()
- 7 includes/statsd.inc \StatsD::gauge()
Sends a gauge, an arbitrary value to statsd
Parameters
$stat : The metric to send.
$value : The value to send for this metric.
$sample_rate: A float between 0 and 1 representing the sampling rate.
1 call to StatsD::gauge()
- statsd_call in ./
statsd.module - The generic statsd wrapper. Used for convenience.
File
- includes/
statsd.inc, line 38
Class
- StatsD
- Sends statistics to the stats daemon over UDP
Code
public static function gauge($stat, $value, $sample_rate = NULL) {
self::send(array(
$stat => "{$value}|g",
), $sample_rate);
}