README.md in lbrt-0.1.0 vs README.md in lbrt-0.1.1

- old
+ new

@@ -1,8 +1,8 @@ # Lbrt -A tool to manage Librato. It defines the state of Librato using DSL, and updates Librato according to DSL. +A tool to manage [Librato](https://www.librato.com/). It defines the state of [Librato](https://www.librato.com/) using DSL, and updates Librato according to DSL. ## Installation Add this line to your application's Gemfile: @@ -174,7 +174,40 @@ source "*" group_function "breakout" summary_function "average" end end +end +``` + +### Space template + +```ruby +template "dstat" do + chart "total_cpu_usage" do + type "stacked" + stream do + metric "dstat.#{context.space_name}.total_cpu_usage" + type "gauge" + source "*" + group_function "breakout" + summary_function "average" + end + max 100.0 + end + + chart "load_avg" do + type "line" + stream do + metric "dstat.#{context.space_name}.load_avg" + type "gauge" + source "*" + group_function "breakout" + summary_function "average" + end + end +end + +space "my-host-001" do + include_template("dstat") end ```