-
Couldn't load subscription status.
- Fork 2
OpenTelemetry MetricsTools
The Cloud Debugger provides tools designed for exploring and understanding **OpenTelemetry **metrics. These tools generate sample metrics data, allowing you to experiment with how metrics are handled in OpenTelemetry and observe the process of exporting this data to external systems for further analysis. The tools include counters and histograms, each offering two variations for flexible exploration.
Counters are used to track cumulative totals, providing a simple way to explore metrics related to event counts or usage patterns in your application.
Counters help you understand how OpenTelemetry metrics capture and tag events over time. They allow you to observe how different tags affect the recorded data and follow the metrics as they are processed and exported.
-
Simple Counter
- Will increment this counter by one each time the button is clicked.
- Includes tags like
user.idandoperation.nameto provide context about each recorded action.
-
Advanced Counter
- Similar to the simple counter but adds a dynamic
countrytag, randomly selected from predefined countries such as Sweden, Denmark, Norway, and Finland.
- Similar to the simple counter but adds a dynamic
Histograms measure and group numeric data into predefined ranges, enabling you to explore the distribution of values in performance metrics or other datasets.
-
Standard Histogram
- Uses default bucket boundaries to group recorded values.
-
Advanced Histogram
- Uses custom bucket boundaries ranging from 0 to 1000.
- The bucket boundaries are [0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000]
This is the data that is recorded by the histograms in this tool:
| Value | Occurrences |
|---|---|
| 50 | 1 |
| 150 | 2 |
| 250 | 4 |
| 350 | 8 |
| 450 | 16 |
| 550 | 32 |
| 650 | 64 |
| 750 | 128 |
| 850 | 256 |
| 950 | 512 |
This pattern demonstrates how values are grouped into predefined buckets with occurrences increasing in powers of two. Making it easy to recognize in the output.
Both counters and histograms are integrated with OpenTelemetry’s export pipeline. By using the Cloud Debugger’s metrics tools, you can observe how metrics data is:
- Captured and tagged using counters or histograms.
- Processed and aggregated within the OpenTelemetry pipeline.
- Exported to external systems like Prometheus or Azure Monitor for analysis and visualization.