Skip to content

fix(dashboard): restore silo counters and responsive navigation - #11492

Closed
ReubenBond wants to merge 2 commits into
dotnet:mainfrom
ReubenBond:rb-11491-dashboard-counters-and-navigation
Closed

ReubenBond wants to merge 2 commits into
dotnet:mainfrom
ReubenBond:rb-11491-dashboard-counters-and-navigation

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Fixes #11491.

The dashboard subscribed to the wrong meter, ignored up/down counters, and overwrote tagged metric points. Its counter page fetched only once, and the narrow-screen layout had no control to reopen the sidebar.

Subscribe using the silo's OrleansInstruments.Meter.Name and filter by meter identity, using the same isolation approach as #11493. Collect one silo-wide stream per instrument, with histogram sums and no bucket or min/max aggregation. Start the dashboard collector before the gateway opens so it observes the first client connections.

Read the silo summary's client count and cumulative received/sent bytes from the existing dashboard telemetry exports. Reuse the existing refresh event for both counter views. This keeps the runtime messaging path unchanged: the PR adds no global listener startup or always-on message byte accounting. Remove obsolete queue-length rows and label the byte totals explicitly.

Preserve AdminLTE's desktop sidebar and add an accessible header toggle for narrow screens. The menu supports keyboard activation, Escape, backdrop dismissal, and dismissal after selecting a destination; offscreen navigation is inert.

Add telemetry, lifecycle, meter-isolation, and production-browser regressions. The browser refresh tests install and pause the fake clock before loading the application. Run the browser regressions in CI.

Microsoft Reviewers: Open in CodeFlow

Copilot AI balanced review requested due to automatic review settings October 14, 2026 09:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The browser regression installs Playwright’s fake clock after application timers have already been created, making the refresh test nondeterministic.

1 open finding
What changed in this PR

Restores dashboard silo telemetry and adds accessible responsive navigation.

Changes:

  • Starts runtime metric collection and correctly aggregates Orleans telemetry.
  • Refreshes silo counters and adds mobile navigation behavior.
  • Adds unit/browser regressions and CI coverage.
File Description
.github/​workflows/​ci.yml Runs dashboard browser regressions.
src/​Dashboard/​Orleans.Dashboard.App/​.gitignore Ignores Playwright output.
src/​Dashboard/​Orleans.Dashboard.App/​README.md Documents prerequisites and UI tests.
src/​Dashboard/​Orleans.Dashboard.App/​eslint.config.js Includes Playwright TypeScript files.
src/​Dashboard/​Orleans.Dashboard.App/​index.html Adds mobile navigation controls.
src/​Dashboard/​Orleans.Dashboard.App/​package-lock.json Locks Playwright dependencies.
src/​Dashboard/​Orleans.Dashboard.App/​package.json Adds Playwright and test script.
src/​Dashboard/​Orleans.Dashboard.App/​playwright.config.ts Configures production-bundle tests.
src/​Dashboard/​Orleans.Dashboard.App/​src/​custom.css Styles responsive sidebar behavior.
src/​Dashboard/​Orleans.Dashboard.App/​src/​index.tsx Refreshes the silo-counter page.
src/​Dashboard/​Orleans.Dashboard.App/​src/​lib/​navigation.ts Implements accessible navigation interactions.
src/​Dashboard/​Orleans.Dashboard.App/​tests/​navigation.spec.ts Tests refresh and responsive navigation.
src/​Dashboard/​Orleans.Dashboard/​DashboardHost.cs Subscribes to the runtime meter.
src/​Dashboard/​Orleans.Dashboard/​Implementation/​DashboardTelemetryExporter.cs Aggregates tagged and up/down metrics.
src/​Dashboard/​Orleans.Dashboard/​README.md Documents restored dashboard features.
src/​Orleans.Runtime/​Silo/​Silo.cs Starts runtime metric collection.
test/​Orleans.Dashboard.Tests/​Orleans.Dashboard.UnitTests/​DashboardHostTests.cs Adds exporter regressions.
test/​Orleans.Dashboard.Tests/​Orleans.Dashboard.UnitTests/​SiloRuntimeCountersTests.cs Verifies early metric collection.
Files not reviewed (1)
  • src/Dashboard/Orleans.Dashboard.App/package-lock.json: Generated file

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ScarletKuro

ScarletKuro commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Ahhhh #11493 did that fix too
feel free to close or borrow something

Comment thread src/Orleans.Runtime/Silo/Silo.cs Resolved
@ScarletKuro

Copy link
Copy Markdown
Contributor

Also, as I understood, the Receive queue, Request queue and Send queue are gone

Copilot AI balanced review requested due to automatic review settings October 14, 2026 12:43
@ReubenBond

Copy link
Copy Markdown
Member Author

I reused the own-meter isolation approach from #11493. This revision keeps the runtime messaging path unchanged and reads client/byte totals from the dashboard telemetry export instead of adding runtime byte counters. The obsolete Receive queue, Request queue, and Send queue rows are removed, and the byte totals are labeled explicitly.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Overlapping silo-summary counter requests can apply stale responses after newer telemetry snapshots.

1 open finding
1 resolved since last review
Files not reviewed (1)
  • src/Dashboard/Orleans.Dashboard.App/package-lock.json: Generated file

🧠 Review effort: Balanced

Comment on lines +290 to +293
http.get(`SiloCounters/${host}`, (_err, data) => {
siloCounters = data;
render();
});
@ScarletKuro

Copy link
Copy Markdown
Contributor

Great, hope this gets shipped soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.Orleans.Dashboard v10: Silo Counters Not Updating and Sidebar Inaccessible on Narrow Screens

3 participants