cd ticket-metrics
./gradlew bootRun
cd ticket-metrics
./gradlew build
cf push
In order to get the metrics into the loggregator system, using VMWare Tanzu Metric Registrar
$ cf register-metrics-endpoint ticket-metrics /actuator/prometheus
$ cf tail -f --envelope-type=counter ticket-metrics | grep pcf_ticket
- POST
/increase/closed
- increments thepcf_ticket_closed_total
counter - POST
/increase/opened
- increments thepcf_ticket_opened_total
counter /actuator/prometheus
- Prometheus endpoint for metrics