Allow attribute configuration for datasources

NB: String attributes must be written litteraly :
type => "'graphite'"

This change is backward compatible