I think the permanent survival of the Empire is ultimately speaking impossible.
If the empire is not ended in this revolt, it will last until modern timed. This is mainly due to the monarchy's biggest problem at the time, which was the lack of an heir. There were problems with the agraral elections and the church, but a good part of this elite will end up being executed with the destruction of the rebellion.
Emperor or no Emperor you would still have an agrarian economy heavily dependent on coffee and oppressive elites. And thus it would also have significant social agitation, rebellions, and likely a coup d'etat at the start of the 20th century.The main change would be that Brazil would likely remain a centralized country instead of adopting federalism.
If the empire is not removed from power during this period, it will not be overthrown.
The republict was the time when Brazil was ruled exclusively by the military, who are historically incompetent when it comes to administration and the economy. Not only that but the army was divided, with many battalions remaining loyal to the monarchy, the Army had only two large groups loyal to the republican ideal. the first president had to carrying out a witch hunt and ended up killing a good part of the royalist officials who considered positivism a stupid idea.
Due to the support given, the Provisional Government suffered great pressure from the Oligarchies to write the first Republican Constitution of the country. They were Inspired by the Magna Carta of the United States. Creating Brazil as a Federative Republic (United States of Brazil), presidential and with open voting (only for literate men). The Provisional Government removed from their positions the then “presidents” of the provinces (which came to be called states) and placed their allies (members of the agrarian elite who obviously were not bureaucrats) who treated the states as their fiefdoms.
Brazil entered a financial crisis after the economic reform led by the then Minister of Finance Rui Barbosa, which aimed to encourage industrialization and was based on the release of bank credits guaranteed by currency issues intended to finance industrial projects. The failure of the government project was due to the boycott promoted by speculators linked to landowners, importers and foreign investors who, through ghost companies, flooded the financial market with shares without capital backing. Consequences such as price inflation, bankruptcies and distrust in financial institutions dragged on for years. Together, there were two gigantic revolts, one led by the navy in 1893 (loyal to the idea of monarchy) that wanted the military out of power and the second that started in Rio Grande do Sul between two parties that disputed power. On one side were the federalists (maragatos), representatives of the elite of the Liberal Party of the Empire; on the other, the historic republicans (woodpeckers), from the Rio-Grandense Republican Party. The conflict eventually turned into a bitter civil war.
The country was in turmoil for a long time while the monarchists and republicans killed each other. Not to mention the dozens of minor revolts, political assassinations, brain drain, creation of favelas (together with the golden law, which freed slaves, a law would come that would provide a piece of land in the interior of the country for each family of free blacks and a monetary competition to help them start life. This law never came due to republicans), the refusal to use the empire's railroad creation plans and basically doing nothing in relation to the infrastructure problem, waste the economic booms and the introduction of gambling addiction to the nation as a whole. The republic did more than federalize the country, it killed an idea of a nation that was being built for almost a century by creating a latin america republic. Not to mention that the coup was carried out in desperation because the republican cause was losing strength.