Method: Statsd#increment

Defined in:
lib/statsd.rb

#increment(stat, sample_rate = 1) ⇒ Object

Sends an increment (count = 1) for the given stat to the statsd server.

Parameters:

  • stat (String)

    stat name

  • sample_rate (Numeric) (defaults to: 1)

    sample rate, 1 for always

See Also:



351
352
353
# File 'lib/statsd.rb', line 351

def increment(stat, sample_rate=1)
  count stat, 1, sample_rate
end