Commit ed2b9ad9 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

display interval on all gauges, todos

parent eb61ac53
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -9,15 +9,14 @@ BACKLOG
- store per-session-data
- callback on session-flush
- report: print number of samples, interval-size on topright via scalaexp-buttonstyle
- fix pie widget
- timeseries gauge: restrict to max resolution
- timeseries-gauge: overview series weights
- timeseries-gauge: overview all numbers
- timeseries-gauge: punchcards
- timeseries-gauge: trends
- timeseries-widget: tooltip -> show key noun   
- timeseries-widget: select sane default tick + tickbtn active states
- fix pie widget
- timeseries-gauge: overview series weights
- timeseries-widget: cardinal on/off should be skeuomorph
- timeseries-gauge: punchcards
- distgauge: render std. deviation
- use rack websocket instead of em websocket
- caching
@@ -29,6 +28,7 @@ BACKLOG
- fix toplist widget
- fix specs
- incr_fraction: implement progressive
- timeseries gauge: restrict to max resolution
- fix session view
- new readme
- new full_example.rb
+2 −2
Original line number Diff line number Diff line
class FnordMetric::DistributionGauge < FnordMetric::Gauge

  def render(namespace, event)
    interval = parse_interval(event["interval"])
    @interval = parse_interval(event["interval"])
    colors = ["#2F635E", "#606B36", "#727070", "#936953", "#CD645A", "#FACE4F", "#42436B"]

    #@num_min =
@@ -14,7 +14,7 @@ class FnordMetric::DistributionGauge < FnordMetric::Gauge
      h[k] = { :min => nil, :max => 0, :avg => [] }
    end

    ticks_in(interval).each do |_tick|
    ticks_in(@interval).each do |_tick|
      tkey = tick_key(_tick, :histogram)

      sync_redis.hgetall(tkey).each do |_val, _count|        
+2 −2
Original line number Diff line number Diff line
class FnordMetric::ToplistGauge < FnordMetric::Gauge

  def render(namespace, event)
    interval = parse_interval(event["interval"])
    @interval = parse_interval(event["interval"])

    @toplist = FnordMetric::Toplist.new
    @all_ticks = ticks_in(interval)
    @all_ticks = ticks_in(@interval)

    @all_ticks.each do |_tick|
      field_values_at(_tick, :limit => top_k, :append => :toplist).each do |item, count|
+1 −1
Original line number Diff line number Diff line
.report_view

  %h1= @opts[:title]
  %h3 Distribution Gauge
  %h3= (fancy_timerange(@interval) * " &nbsp;&mdash;&nbsp; ")
  
  %ul.ui_tabs.tabs
    %li.active{"data-tab" => "Overview"}
+1 −1
Original line number Diff line number Diff line
.report_view

  %h1= @opts[:title]
  %h3 Toplist Gauge
  %h3= (fancy_timerange(@interval) * " &nbsp;&mdash;&nbsp; ")

  %ul.ui_tabs.toplgauge_tabs
    %li.active{"data-tab" => "Overview", :onclick=>"toplgaugeTabClick.apply(this);"}