Hi @Maksym_Postument, I'm not quite sure if this is what you are aiming for, but answering this from the apm-server perspective, since this is how the issue was labeled. The apm-server does not support exposing metrics in a prometheus compatible format.
You could use ES ingest processor to rewrite metrics into a different mapping, but this might break parts of the apm UI and is probably not what you are looking for.
I'd be interested in understanding your use case and what you are looking for a bit better, if you don't mind giving more context.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.