microsoft / microsoft/aspire

Dashboard shows the sum of measurement values of Gauge

Open
#2,884 7 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

I have a service in which an ObservableGauge\ instrument monitors approximately 90 components and has an `observeValues` callback that returns the latest processing duration of each, as IEnumerable\\>. Each measurement also has a tag whose value is the name of the component. When I make the service export these to the Aspire dashboard over OTLP and don't set any filters in the dashboard, both the "Graph" and "Table" options in the dashboard apparently show _sums_ of the durations. It would be better to show the maximum or the average, rather than the sum. According to [OpenTelemetry Supplementary Guidelines for Metrics](https://opentelemetry.io/docs/specs/otel/metrics/supplementary-guidelines/#additive-property), Asynchronous Gauge values are not additive.

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.