title       "Requests Per Second by HTTP Status"
area        :none
hide_legend false
vtitle      'reqs / sec'
description "API Requests as seen by stats.<%= @app_name %>.application.byStatusCode.*"

# In contrast to the stats.timers 'count' metrics, the ones in 'stats'
# (no '.timer') are automatically rescaled to per second frequency by
# estatsd, so we can just use them directly (contrast to the
# http_requests_per_second_by_request_type.graph)

# Since there are potentially several HTTP status codes that can be
# returned, many of which will be low-count metrics that will
# otherwise crowd the display, we'll filter out codes that don't rise
# above a given threshold at the end of the graphed time period.
field :rate,
      :data => 'currentAbove(stats.<%= @app_name %>.application.byStatusCode.*, 2)',
      :alias_by_node => 4

title       "Requests Per Second by HTTP Status (more than 2 instances)"
area        :none
hide_legend false
vtitle      'reqs / sec'
description "API Requests as seen by stats.<%= @app_name %>.application.byStatusCode.*"

# In contrast to the stats.timers 'count' metrics, the ones in 'stats'
# (no '.timer') are automatically rescaled to per second frequency by
# estatsd, so we can just use them directly (contrast to the
# http_requests_per_second_by_request_type.graph)

# Since there are potentially several HTTP status codes that can be
# returned, many of which will be low-count metrics that will
# otherwise crowd the display, we'll filter out codes that don't rise
# above a given threshold at the end of the graphed time period.
field :rate,
      :data => 'currentAbove(stats.<%= @app_name %>.application.byStatusCode.*, 2)',
      :alias_by_node => 4

Tweak the title to reflect use of cutoff
Tweak the title to reflect use of cutoff
