- Newest
- Most votes
- Most comments
You are correct that OpenTelemetry histograms aren't fully compatible with CloudWatch's native metrics' datatype. However, the Count statistic still gives you valuable information about request frequency, which seems to what you're looking for in this case.
To create a graph showing the number of HTTP requests per minute using the data you have from OpenTelemetry metrics in CloudWatch, you should focus on the "Count" value in your metrics.
Here's how to create this visualization:
-
In the CloudWatch console, search for your metric. It should be in the namespace where your EMF logs are being extracted (by default, this would be the "CWAgent" namespace if you're using the standard configuration).
-
Select the "http.server.request.duration" metric.
-
For the statistic, choose "SampleCount" or "Count" (depending on what CloudWatch exposes for your metric). This represents the number of data points received during each period, which corresponds to the number of HTTP requests.
-
Set the period to 1 minute to see requests per minute.
-
Choose the appropriate graph type - a line graph would work well for showing request rates over time.
The "Count" value in your EMF logs represents the number of requests that occurred during the reporting period. By graphing this value with a 1-minute period, you'll be able to visualize how many HTTP requests are occurring per minute.
Sources
Graph a metric - Amazon CloudWatch
Collect metrics and traces with OpenTelemetry - Amazon CloudWatch
Community | Instrumenting Java Applications with OpenTelemetry
Relevant content
asked 2 years ago
asked 2 years ago
