How to expose application metrics to monioring frameworks like Prometheus,Grafana

How to expose technical metrics from Pega to another monitoring systems like grafana,Prometheus.

for ex : number of threads, DB connections , available heap memory, requestor managment, agents, listner status.. similar to a spring boot acutator which gather application health metrics and can scrap to prometheus. similar can we have any libraries available in Pega 7.x,8.x version to expose metrics to monitroing frameworks.

I found below article but it doesnt have detailed information.

@SrinivasK6050Can you please help understand if your application is in cloud or in a physical server (VSI/PSI). Accordingly solution varies

@SriharshaAnika application in physical server

@SrinivasK6050

Run the jmx exporter on your physical server.

Above link has details of the port to monitor (which should be pega JMX port) . this will return the metrics when ever you hit it’s respective http end point.

If at all you want the data to be posted and pumped into any other system like grafana then follow the steps outlined in this below link.

you can use kafka/mq to do the job of sharing the data with grafana.

@SrinivasK6050

Is this solution available for PEGA Cloud as well ?

@SriHarsha Anika I would like to integrate Prometheus in Pega(PSI). Can you please help me on this

@ARUNKUMARR17013173 this solution if for client owner cloud or their VM based deployments. In pega Cloud it is not available. Pega cloud takes care of handling the infrastructure, security etc. as per the contract, you don’t need to worry about telemetry data. High availability is ensured from Pega cloud.

if purpose of requiring this data for traceability - then pega cloud has a mechanism to share the logs. through logs you can get the required traceability.