It seems like Germany would have been adamantly against a fellow Axis power attacking a sleeping giant who, up until that point, had largely remained isolated.
This answer from a few months ago should cover most of it.
The Germans were surprised but generally pleased. Germany likely would have preferred that the Japanese attack the Soviet Union in 1941 and made some effort to lobby for that. But the Japanese had already considered that and opted against it, preferring a strategy that took them south into Asia and the Pacific. The Japanese did not inform the Germans of their plan to attack Pearl Harbor, but quietly sought assurances that if war broke out with the United States, it would have Germany's support. The Germans were ready to offer that support, as the Americans were already heavily involved in providing materiel support to Britain and American destroyers had begun engaging German U-boats in fall 1941, as I detailed here. The Germans believed the United States was likely to get in the war very soon anyway. If war with America was coming (or already happening) it would be advantageous to fight the Americans who were divided between two theaters.