Java code to work with Prometheus a monitoring platform via HTTP requests and responses to get collected performance metrics measured by application