var free;
var total;

JSON.parse(value).forEach(function(metric) {
	if (metric['name'] == 'node_filesystem_size_bytes'){
		total = parseFloat(metric['value']);
	} else if (metric['name'] == 'node_filesystem_free_bytes'){
		free = parseFloat(metric['value']);
	}
});

return (total-free);