Skip to content

Dashboard metrics filters do not take effect while metrics are paused #11692

@KalleOlaviNiemitalo

Description

@KalleOlaviNiemitalo

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I have paused metrics in the .NET Aspire dashboard, changing the metrics filters does not immediately affect what the graph or the table shows. The filters UI itself updates but the graph does not correspond to the filters.

Expected Behavior

Pausing the metrics should stop the already received metrics from scrolling out of the graph, but the graph should still update when I change the metrics filters.

Steps To Reproduce

Start the .NET Aspire dashboard standalone. Start a program that exports about 40 seconds worth of metrics to it. Open the metrics page of the dashboard, select 5 minutes as the graph duration, and select the resource and metric. Wait for the program to finish. Press the pause button on the metrics page, so that the graph stops scrolling.

Change the metrics filters so that most of the metrics are excluded; for example, select only one error.type. The graph moves a few pixels to the left but it incorrectly still includes metrics data that do not match the current filters.

Change the graph duration to 15 minutes. Now the graph correctly shows only metrics data that match the filters.

Change the graph duration back to 5 minutes. The graph still correctly shows only metrics data that match the filters.

Reset the metrics filters, so that all metrics data should be displayed again. The graph incorrectly still filters the data according to the previous filter settings.

Exceptions (if any)

None

.NET Version info

No response

Anything else?

.NET Aspire 9.5.0 on .NET 8.0.20

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions