microsoft / microsoft/aspire

cannot set metrics temporality preference to use exponential bucket histogram

Open
#6,239 2 comments 1 reaction 0 assignees View on GitHub
area-dashboard area-telemetry
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

Using a Java app and the Java otel agent 2.8.0, when I tried to use the standalone dashboard http metrics did not display in chart and the table view said 'no metrics data found'
![Image](https://github.com/user-attachments/assets/aa2f8b27-960b-4fac-a858-5d54085c1657)

We use New Relic as our o11y platform, and configure the following in our apps:
```
otel.exporter.otlp.metrics.temporality.preference=delta
otel.exporter.otlp.metrics.default.histogram.aggregation=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM
```

If both of those are set as above, the graphs & table charts for http.client.request.duration and http.server.request.duration don't show data.

If I change it to (the defaults for the Java agent):
```
otel.exporter.otlp.metrics.temporality.preference=cumulative
otel.exporter.otlp.metrics.default.histogram.aggregation=EXPLICIT_BUCKET_HISTOGRAM
```
then the charts display as I expect -- percentiles, exemplars all seem happy

![Image](https://github.com/user-attachments/assets/52dbe833-b5fc-4466-80ba-350e93c4c0d0)

### Expected Behavior

If the bucket type is not supported, I'd still expect to see an error or warning in the table view.
It'd also be good to have some note in the documentation about supported formats -- should apps set cumulative or delta temporality? which histogram types are supported?

### Steps To Reproduce

ran standalone local dashboard:

```
docker run --rm -it -p 18888:18888 -p 4317:18889 -p 4318:18890 -d --name aspire-dashboard -e DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS="true" mcr.microsoft.com/dotnet/aspire-dashboard:8.1.0
```

ran my application with the following env vars to direct it to the localhost:4317
```
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
OTEL_LOGS_EXPORTER=otlp
OTEL_METRICS_EXPORTER=otlp
OTEL_TRACES_EXPORTER=otlp
OTEL_METRIC_EXPORT_INTERVAL=1000
```

### Exceptions (if any)

_No response_

### .NET Version info

_No response_

### Anything else?

Aspire dashboard version: 8.1.0

JRE version: temurin-17.0.7
Java OTel agent version: 2.8.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.