Governments don't like unpleasant surprises, and it is abundantly clear it has suddenly been presented one in the form of a home-grown energy crisis.

The basic problem is that Ireland is facing a scenario where there could be more demand for energy than there is supply.

This afternoon the Taoiseach Micheál Martin said that foreign direct investment had "grown exponentially" over the past two years alongside the economy and the population.

That FDI has included a huge expansion of energy-hungry data centres. Seventy of them to be exact.

It may not be fair to simply blame foreign multinationals for gobbling up a vast amount of the country's energy.

After all, it was the Irish State which gave permission for data centres to be built. The authorities could have said 'No'.

While the IDA doesn't like the using the term "moratorium", the reality is that no new data centres have been connected to the electrical grid since July 2020.

But the ones which are connected have increased their use of power.

According to the Central Statistics Office, data centres increased consumption by 32% between 2020 and 2021.

A recent memo for the Government on data centres said that while they were responsible for 2% of Ireland's emissions they used 14% of the country's electricity.

That is an enormous figure by any measure.

But it is also clear from the Taoiseach's remarks that there is a confluence of factors at play.

He cited the decision by the Government to give the go ahead to grid operator Eirgrid to procure generators to plug the energy shortfall.

In recent months the Government allocated hundreds of millions of euro to ensure there was there would be a security of supply.

This follows meetings held with the regulator, called the Commission for Regulation of Utilities, and Eirgrid, some years ago which were attended by senior Cabinet members.

The regulator and the grid operator flagged that there would be a shortfall in generation and asked the Government for permission to procure more power generation.

The ESB won an action to provide additional power.

But the company won't be able to fulfill that contract on time because of planning issues and equipment problems.

All of these difficulties have created a situation where the regulator is now proposing additional tariffs on large electricity users during peak periods between 5pm and 7pm.

One senior Government figure told me that they felt there had been an absence of "full and frank disclosure about the frailties of the system" for the coming winter.

The other concerning aspect of the crisis is that Ireland is planning on reducing its emissions in the coming years by using electricity for cars and heat pumps as the country moves away from fossil fuels.

That environmentally friendly Government policy will add to electricity demand.

Both Labour and the Social Democrats have been asking pertinent questions about the sudden energy headache which has arisen.

The Cabinet has tasked former senior civil servant Dermot McCarthy to review why Ireland has suddenly found itself facing a crisis.

This is code for asking whether Eirgrid and the regulator are at fault.

Regardless of the outcome of that review, when the Dáil returns next month the Opposition will lay the blame firmly at the Government's door.