No commit activity in last 3 years
No release in over 3 years
DSL over graphite dashboard api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Graphite Dashboard API

Build Status Gem Version Dependency Status

Graphite dashboard api is a ruby gem which help to create and update graphite dashboards.

It allows to create dashboard with code instead of long manipulations in graphite dashboard UI.

How to

Simple example:

my_graphs = %w(preprod prod).map do |env|
  GraphiteDashboardApi::Graph.new "chef-client run time" do
    targets [
      "alias(averageSeries(storage.#{env}.chef.*.elapsed_time),\"average run time\")",
      "alias(maxSeries(storage.#{env}.chef.*.elapsed_time),\"max run time\")"
      ]
    end
  end

dashboard = GraphiteDashboardApi::Dashboard.new 'chef-run-time' do
  graphs my_graphs
end

dashboard.save!('http://mygraphite.server.com')

For more complex examples, see spec/ folder