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
Vinicius Strugata Ambrosio
1 answers
1
Answering my own question (contributing with the mx community):