Usage of Prometheus on the localhost: is it possible?

0
Hello Experts   When running the app locally (via Studio Pro), a message appears on the logs INFO - M2EE: Added admin request handler '/prometheus' with servlet class 'com.mendix.metrics.prometheus.PrometheusServlet' Question: is it possible to use an instance of Prometheus running locally and configure it to use the handler '/prometheus'?   I tried to use Postsman to test the url http://localhost:8090/prometheus and got the following error: HTTP ERROR 503 No PrometheusMeterRegistry available URI: /prometheus STATUS: 503 MESSAGE: No PrometheusMeterRegistry available SERVLET: com.mendix.metrics.prometheus.PrometheusServlet-5b1c32e4   If possible, what are the configs to define in the prometheus.yml? scrape_configs: # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. - job_name: "prometheus" # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ["localhost:9090"] - job_name: "mendix" metrics_path: "/prometheus" static_configs: - targets: ["localhost:8090"]    
asked
1 answers
1

Answering my own question (contributing with the mx community):

https://vstram.medium.com/how-to-monitor-your-mendix-web-application-with-prometheus-locally-e9064f819d7c

is also possible use Grafana locally

https://vstram.medium.com/using-grafana-to-create-a-dashboard-from-a-local-mendix-application-data-ed25ef84bda3

answered