
Listing 3: Generate one request per second to BWCE API.Īfter a while open Grafan dashboard called BWCE Performance ( htttp://localhost:3000) to review performance of your microservice. Histogram buckets of long running processes .* have been explicitly overridden to reflect expected execution duration more accurately. Moreover, we would like to instrument only JDBC activities (matched by name, not type). Configuration instructs Prometheus exporter to bind to port 1234 and expose metrics of all BW processes matching regular expression .*. Open file resources/addons/config/Prometheus-reporter.json in your favourite text editor. Listing 1: Structure of tutorial archive with description. │ └── prometheus # Prometheus configuration │ ├── mysql # MySQL scripts provisioning schema for BWCE application │ ├── grafana # Grafana scripts that create sample dashboard and Prometheus datasource │ │ └── io.event.subscriber_1.11090250.jar # BWCE Prometheus Exporter binary │ │ ├──. # Standard way to install MySQL JDBC driver inside BWCE image │ │ │ └── prometheus-reporter.json # BWCE Prometheus Exporter configuration ├── docker-compose.yaml # Docker Compose manifest that provisions MySQL, BWCE, Prometheus and Grafana ├── Dockerfile # Docker file resopnsible for building BWCE application image The purpose of Report job is to show how to adjust Prometheus histogram buckets for long running processes. Take your time to navigate through processes. Unzip the archive and import BusinessWorks project into TIBCO BusinessStudio. End user interacts with Grafana to view pre-defined dashboards populated with data from Prometheus.įigure 1: Architecture of BWCE monitoring solution with Prometheus.ĭownload tutorial archive which contains Docker Compose manifest setting up complete environment within seconds. BWCE container exposes HTTP endpoint which is being periodically accessed by Prometheus server. REST service persists information about money transfers into relational database. Let us take a quick look at the architecture of our system. Mentioned tool hooks into BusinessWorks event bus and exposes common JVM statistics, as well as configured process and activity-level metrics via HTTP endpoint.

As a key component enabling Prometheus server to periodically pull metrics from BWCE container, we will leverage BW6 Prometheus extension available on GitHub. Purpose of hereby tutorial is to show case how to monitor performance of simple REST service implemented in TIBCO BusinessWorks Container Edition using Prometheus.
