SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

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

🎓 beginner 15 min. SAP BTP Cloud Foundry Runtime And EnvironmentBeginnerCloud

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 April 13, 2026
Created by August 1, 2024
Contributors

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

Learn more →