Jenkins Prometheus Plugin expose an endpoint (default /prometheus) with metrics where a Prometheus Server can scrape.
Documentation can be found here
Please note that the documentation is a WIP.
Currently only metrics from the Metrics-plugin and summary of build duration of jobs and pipeline stages
PROMETHEUS_NAMESPACE Prefix of metric (Default: default).
PROMETHEUS_ENDPOINT REST Endpoint (Default: prometheus)
mvn clean install
mvn hpi:hpi