Metrics

This section helps you to configure the metrics and monitoring package.

A central Meter library is used as a common metric framework across the products. Monitoring system collects and records data over time to expose high-level metrics, which are useful to determine the overall health of a distributed system.

You can monitor key application performance metrics using the Open telemetry data in the industry-standard dashboard by enabling the framework to provide support for the metrics. These metrics are enabled in eight infra microservices to verify the application in UI.

All kinds of Microservices consist of API, INGESTER, Scheduler and DB services. Separate metrics are added to each service.

Active Guage:

It counts the number of Active request - Temn_Msf_Api_Active_Gauge{}

Deactive Guage:

It counts the number of de-active Request - Temn_Msf_Api_Deactive_Gauge{}

SUM(Temn_Msf_Api_Active_Gauge{} - Temn_Msf_Api_Deactive_Gauge{}) - used to find the total number active request.

Counter:

It calculates the number of API count.

Temn_Msf_Api_Counter_total{} - used to see all API count

Temn_Msf_Api_Counter_total{filterValue} - is used to see filter Metrics

Dependency

Below dependencies are need to be added in respective pom.xml

TemnMeter dependency:

<dependency>
<groupId>com.temenos.technology</groupId>
 <artifactId>TemnMeter</artifactId>
 <version>4.0.3</version>
</dependency>

TemnMonitorLib Dependency:

<dependency>
<groupId>com.temenos.technology</groupId>
<artifactId>TemnMonitorLib</artifactId>
<type>pom</type>
</dependency>

Configuration

The below configuration should be added to enable the metrics in microservices

Property Name Sample Value
temn.meter.publisher.host 127.0.01 (hostName)
temn.meter.publisher.port 9091 (Port)
temn.meter.disabled False

Monitoring Package

Monitoring package is a part of TemnMonitoring solution, which contains services for processing, visualizing and analyzing, tracing, logging and metric (under observability of MS) data instrumented by each microservice.

Launching Monitoring Pack

To launch monitoring services :

  1. Checkout TemnMonitor pack from respective bitbucket link.
  2. Go to ../temnmonitor/.. package.

    NOTE:

    Ensure the docker is up and running.

  3. Open command prompt and run launch-monitoring.bat up --build -d.

  4. The monitoring pack has been launched successfully.

NOTE:

To stop the service, run the launch-monitoring down.

Visualization Guide

Visualization guide helps you to configure the monitoring package as shown below:

  1. Log into the grafana. http://localhost:3000/ using "admin" as the Username and Password.
  2. Once logged in data source for Grafana, configure the dashboard.
  3. Under configuration section, select data source > Prometheus.
  4. Go to dashboard section and select Microservices_Metrics dashboard.

Sample Dashboard

The sample dashboard consists of the Prometheus Data Source Configuration, Dashboard in Graffana, Sample Chart for Timer, Sample Counter Metrics and Sample Gauge Metrics.

Sample Dashboard Example
Prometheus Data Source Configuration
Dashboard in Graffana
Chart for Timer
Counter Metrics
Gauge Metrics

Copyright © 2020- Temenos Headquarters SA

Published on :
Wednesday, October 12, 2022 6:49:21 PM IST

Feedback
x