fetep / pencil

Graphite dashboard system
http://fetep.github.com/pencil/
Other
155 stars 14 forks source link

please add support for defining dashboards/graphs in multiple files #11

Closed kellyjmk closed 12 years ago

kellyjmk commented 12 years ago

I'd like to be able to group different categories of graphs into multiple files rather than having a single monolithic file. Thanks!

whd commented 12 years ago

You should already be able to do this. All .y[a]ml files in the configuration directory are loaded.

kellyjmk commented 12 years ago

Yep, they're loaded but if I wanted to define graphs in multiple files, I would need a :graphs: key in each file. But the line "configs.each { |c| @rawconfig.merge!(YAML.load(File.read(c))) }" in lib/config.rb replaces duplicates. Is there some other way to do this?

whd commented 12 years ago

Ok, I've added this to a3d0093, which github magically understands. :graphs and :dashboards are now merged "recursively".

kellyjmk commented 12 years ago

Thanks!