Create a sql based user defined metrics with below script. SQL query output will be 2 colums with metrics value as number.
select tablespace_name, 100-(round(((mb_free+mb_total-mb_curr)/mb_total)*100,0)) adj_pct_free from ( select d.tablespace_name, nvl(sum(f.bytes)/1024/1024, 0) mb_free, sum(d.bytes)/1024/1024 mb_curr, case when sum(d.maxbytes)>0 then sum(d.maxbytes)/1024/1024 else sum(d.bytes)/1024/1024 end mb_total from dba_data_files d left outer join dba_free_space f on (f.tablespace_name = d.tablespace_name) group by d.tablespace_name ) used_free where tablespace_name not like '%UNDO%';