SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Overview of Custom Metrics

An overview of custom metrics and instrumentation

Overview

You will learn

  • Why custom application metrics are useful
  • What instrumentation is
  • What agents and sidecars are
  • How to run a Prometheus exporter as a sidecar
Beyhan Veli B Beyhan Veli August 21, 2026
Created on August 1, 2024
Contributors

More from Beyhan Veli

See all 10 tutorials by Beyhan Veli →

Prerequisites

Steps

Step 1 Custom Metrics Overview

While container metrics can provide a general idea of your application’s resource usage, alone they rarely provide enough insight to deeply understand - and therefore improve - your application’s performance.

This is where creating your own custom metrics comes in. Custom application metrics can:

  • Show you how a particular function is performing;

  • Track various performance measurements, e.g. number of successful requests to an endpoint;

  • Gather data on number of visitors, latency, and more.

Custom metrics are useful in a wide range of scenarios, from using them with analysis tools to track user trends over time, to identifying performance bottlenecks (which can help identify reasons for poor performance of other metrics), to shedding light on hard-to-identify errors within your application(s). Custom application metrics aren’t a panacea for all issues. There may be times you cannot get exactly the data you want and other times you will have trouble separating useful data from tons of verbose noise also generated. It is a good first step because, in the rare cases you can’t get the information you are after, it can at least give you some clues as to what the next step in diagnosing the problem might be.

Step 2 Instrument your app with Custom Metrics
+
Step 3 Metrics through agents
+
Step 4 Metrics through sidecars
+
Step 5 Set up a prometheus exporter as a sidecar
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Custom Metrics Overview 2. Instrument your app with Custom Metrics 3. Metrics through agents 4. Metrics through sidecars 5. Set up a prometheus exporter as a sidecar