I&B Monitoring Platform documentation

Template for Applications performance monitoring

It is assumed you already created resource Control API end added exporter to it.

This guide will walk you through creating a custom template for the Control API application, that is part of I&B platform.

Control API runs on node.js so we use prom-client to instrument a monitoring of our own application.

Depending on technology your application is build on, you can use appropriate metrics exporter from Prometheus or just search it.

We prepared table with some Control API metrics here.

Naturally, your metrics may differ from ours, so you will likely need to use PromQL to tailor them to your specific requirements.

Create new template.

To create new template navigate to image-20250726-091810.png menu.

Click on image-20250726-112249.png button.

Enter into Create new template form

Template Name: control-api.

Template description: I&B platform control api template.

In the 'Select Subunit or Layer' section, choose 'Layer' from the drop-down menu. This means the template will be used to monitor an IT service.

image-20250726-112849.png

Leave Copy from field with none as we will create template from a scratch. As an alternative, you may create a new template using an existing one as a base.

From Operation domain drop-down menu select Applications as we want to monitor this layer.

In Exporter field select prom-client and click Create button.

You can see created template in templates list.

image-20250801-141527.png

You may notice that the owner of this template is user , while the owners of other templates are I&B platform.

Platform templates cannot be deleted through the actionsmenu; however, they can be edited.

Click on control-api template.

Currently there is no metrics in it - click on image-20250726-114752.png button.

Fill in fields from prepared I&B platform Control API table, for example

Metric Name: get user data

Metric Group: As this is a newly created template, no metric groups are currently available. Click on drop-down menu and select Create new group and enter in new window requests rate.

image-20250726-130515.png

Create issue: no

Layer / Subunit: no

Service / Business unit: no

Business: no

Metric Formula: rate (http_requests_total{route="/v2/user/:email", method="GET", status="200"}[60s])

Click the image-20250726-131127.png button to preview how the metric will appear. This allows you to verify the formula and view the available metric attributes, so you can make adjustments if necessary.

Measurement: r/s - short from request per second

Thresholds and Comparator: For this particularly metric we set threshold < 0, so it will never be crossed - that exactly we needed for such kind of metric. This is for informational purposes only and has no impact on functionality.

If all mandatory fields entered correctly - click Create.

By the end, you will have a simplified template for monitoring the Control API application:

image-20250726-134956.png

To check template metrics navigate to DashboardResources, select resource control-api.dev.svc.cluster.local and template control-api.

image-20250726-135344.png

Data is visible in the Request Duration and Request Rate panels.

Since the application has no errors, the Error panel correctly shows no data.