use curl to update metrics