class statsd.raw.Raw(name, connection=None)[source]

Class to implement a statsd raw message. If a service has already summarized its own data for e.g. inspection purposes, use this summarized data to send to a statsd that has the raw patch, and this data will be sent to graphite pretty much unchanged.

See for more info.

>>> raw = Raw('test')
>>> raw.send('name', 12435)
>>> import time
>>> raw.send('name', 12435, time.time())
send(subname, value, timestamp=None)[source]

Send the data to statsd via self.connection

  • subname (str) – The subname to report the data to (appended to the client name)
  • value – The raw value to send