ripienaar / graphite-graph-dsl

A small DSL to describe graphite graphs
http://www.devco.net/
Apache License 2.0
167 stars 43 forks source link

alias_by_node and alias_sub should not be mutually exclusive #29

Open falkenbt opened 11 years ago

falkenbt commented 11 years ago

if target[:alias_by_node] graphite_target = "aliasByNode(#{graphite_target},#{target[:alias_by_node]})" elsif target[:alias_sub_search] graphite_target = "aliasSub(#{graphite_target},\"#{target[:alias_sub_search]}\",\"#{target[:alias_sub_replace]}\")"

Is there a reason for this being if/elsif? In graphite you can use the two in combination.

ripienaar commented 11 years ago

if graphite allows it i guess we should do the same - wanna do a pull?