Datadog stock has surged as investors view its software as key in monitoring AI infrastructure while SaaS companies struggle.