Method to allow for Prometheus scraping?

I would like to be able to use beats to push to logstash, as well as to post to http so that it could be scraped by prometheus. Looking through the docs, I see that beats has an http server for profiling. Would it be possible to leverage this to post metrics so that it could be scraped by prometheus? Alternatively, how feasible would it be to have it answer to scraping via API similar to how prometheus does this for ec2, nerve, kubernetes, etc?

If this has been already addressed elsewhere, I apologize. I searched here and in github, and saw some related issues to shipping via http, but not for creating an endpoint for scraping. Thanks!

creating an http endpoint for collecting stats is not foreseen in libbeat. For some beats it might be okish, but beats are mostly build for pushing data.