adhocracy_core.stats.subscriber module

Send counter runtime statistics to statsd server.

incr_event_metric(name: str, rate: float, event: object)[source]

Increment statsd metric name.

Parameters:
  • name (str) – the metric name send to the stats server
  • rate (float) – sample rate (>=0 and <= 1) to reduce the number of values
  • event (object) – object with optional registry attribute to retrieve the pyramid registry.
incr_requests(event)[source]

Increment statsd metrics to count requests.

includeme(config)[source]

Include subscriber to send runtime statistics.