Skip to content

Instantly share code, notes, and snippets.

@masone
Created February 28, 2013 11:13
Show Gist options
  • Save masone/5056020 to your computer and use it in GitHub Desktop.
Save masone/5056020 to your computer and use it in GitHub Desktop.
# event data: { :_type => :set_metrics, :total_people_count => 23000000 }
gauge :total_people_count_day,
:tick => 1.day,
:title => "Active count"
event :set_metrics do
set_value :total_people_count_day, data[:total_people_count]
end
widget 'Totals', {
:title => "Total counts",
:type => :numbers,
:gauges => [:total_people_count_day, :total_invite_count_day],
:include_current => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment