We currently use an ancient version of the prometheus java agent in cloud from Aug 2017. I've frequently seen the java agent code take up 6% of CPU profiles, mostly going to regex processing.