public static function StatsD::gauge in StatsD 7
Same name and namespace in other branches
- 6 includes/statsd.inc \StatsD::gauge()
- 7.2 includes/statsd.inc \StatsD::gauge()
Sends a gauge, an arbitrary value to statsd.
Parameters
string $stat: The metric to send.
mixed $value: The value to send for this metric.
float $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);
}