anchor.diff:      ?assertEqual([
           #{ name => "Default",
              graphs => [#{metrics => [#{name => "counter",
  -                                      realtime => true}],
  +                                      realtime => true,
  +                                      visibility => true}],
                           units   => "msg" },
                         #{metrics => [#{name => "counter.rps",
  -                                      realtime => true}],
  +                                      realtime => true,
  +                                      visibility => true}],
                           units   => "msg/sec" }]}],
           build_graphite([{graph, #{ units => "msg",
                                      metrics => [{"counter", counter, #{realtime => true}}]}}])).
  
positive.code: graphite_histogram_test() ->
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [ #{name => "bar.min"},
                                       #{name => "bar.max"},
                                       #{name => "bar.mean"},
                                       #{name => "bar.50"},
                                       #{name => "bar.75"},
                                       #{name => "bar.90"},
                                       #{name => "bar.95"},
                                       #{name => "bar.99"},
                                       #{name => "bar.999"}]}]}],
          build_graphite([{"bar", histogram}])).
  
  graphite_counter_with_gauge_test() ->
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [ #{name => "gauge"},
                                       #{name => "counter"} ]},
                        #{metrics => [ #{name => "gauge"},
                                       #{name => "counter.rps"}]}]}],
          build_graphite([[{"counter", counter}, {"gauge", gauge}]])).
  
  graphite_all_in_one_group_test() ->
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [ #{name => "counter"},
                                       #{name => "counter.rps"},
                                       #{name => "gauge"},
                                       #{name => "histogram.min"},
                                       #{name => "histogram.max"},
                                       #{name => "histogram.mean"},
                                       #{name => "histogram.50"},
                                       #{name => "histogram.75"},
                                       #{name => "histogram.90"},
                                       #{name => "histogram.95"},
                                       #{name => "histogram.99"},
                                       #{name => "histogram.999"}]}]}],
          build_graphite([[{"counter", counter}, {"gauge", gauge}, {"histogram", histogram}]])).
  
  graphite_groups_test() ->
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [ #{name => "gauge"} ]}] },
          #{ name => "Group1",
             graphs => [#{metrics => [ #{name => "counter1"}]},
                        #{metrics => [ #{name => "counter1.rps"}],
                          units   => "rps" }]},
          #{ name => "Group2",
             graphs => [#{metrics => [ #{name => "counter2"}]},
                        #{metrics => [ #{name => "counter2.rps"}],
                          units   => "rps" }]}],
          build_graphite([{group, "Group1", [
                              {graph, #{metrics => [{"counter1", counter}]}}]},
  
negative.code:     NormalizedMetrics2 = mzb_script_metrics:normalize([[{"foo", "counter"}]]),
      ?assertEqual([
          {group, "Default", [
              {graph, #{metrics => [{"foo", counter, #{visibility => true}}]}}
          ]}], NormalizedMetrics2).
  
  normalizetion_negative_test() ->
  