Skip to content

feat(slm): an install metrics screen, with the reader moved into the SLM (#19484) - #20610

Merged
mrveiss merged 21 commits into
mainfrom
issue-19484-slm-install-metrics
Nov 4, 2026
Merged

mrveiss merged 21 commits into
mainfrom
issue-19484-slm-install-metrics

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

The finished install metrics reader never had a screen, and install-wide data is server-wide, so the maintainer decided on an SLM monitoring screen with the reader moved there. The SLM backend does not serve these routes, so the screen reads the main backend through the existing client, and it has to say so plainly when the main app is down.

What Changed

  • New /monitoring/install, admin-only, with InstallMetrics.vue, InstallMetricsOverview.vue, InstallMetricsFindings.vue and useInstallMetricsApi.ts.
  • Polls every 15 seconds with the shared poller. It does not use the WebSocket, because that location needs an Authorization header a browser socket cannot send.
  • All reads failing shows not-available and no figures, and a later failed poll drops old figures. One failed section shows its own error, reading "Not reported". Missing values never read as 0.
  • autobot-frontend/src/composables/useInstallMetrics.ts moved out: nothing but tests imported it. Those tests and doc references are updated.
  • Kit components only, no <style> or new class names. SLM en.json keys, other locales generated.

Verification

  • InstallMetrics.test.ts (9) and MonitoringView.test.ts: 11 passed. pollerCircuitBreaker and websocket-client tests pass. reka-ui is stubbed locally.
  • Paused polling shows its notice with Retry, which resumes polling; the circuit-breaker behaviour is tested on this poller.
  • Auth, by reading: /autobot-api/ admits an SLM admin session, then nginx injects the internal API key if autobot_internal_api_key is set, and the five admin-gated routes accept that key. Without the key, five of six reads likely fail and the screen shows a partial failure. Whether the live vhost has it is unchecked; /services/health is public.
  • Not done: a browser, vue-tsc, lint, a live SLM.

Model Used

Claude Sonnet for the implementation, Claude Opus for coordination.

Single-issue rationale

Refs #19484 and does not close it: the main app's other /monitoring/* fetchers (services/api.ts, ApiClient.ts, useSystemArchitectureData.ts, SystemRepository.ts) are not moved, and no reason is recorded for each yet.

…ain app (#19484)

SLM > Monitoring > Install (admin): host, services, alerts, recommendations, GPU and NPU
read from the main backend's /monitoring routes and polled. All six reads failing shows a
not-available state with no figures; a failed read never leaves the last reading shown.
useInstallMetrics.ts is removed from the main app (only tests imported it).
@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 2, 2026
@mrveiss mrveiss added the phase:M3.6 SLM platform screens label Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 09b17c2 and a306bbc.

Files selected for processing: 27
  • autobot-frontend/src/__tests__/websocket-authenticated-clients-17009.test.ts
  • autobot-frontend/src/composables/__tests__/pollerCircuitBreaker.test.ts
  • autobot-frontend/src/composables/useInstallMetrics.ts
  • autobot-slm-frontend/src/components/monitoring/install/InstallMetricsFindings.vue
  • autobot-slm-frontend/src/components/monitoring/install/InstallMetricsOverview.vue
  • autobot-slm-frontend/src/composables/useFleetMetrics.ts
  • autobot-slm-frontend/src/composables/useInstallMetricsApi.ts
  • autobot-slm-frontend/src/locales/ar.json
  • autobot-slm-frontend/src/locales/de.json
  • autobot-slm-frontend/src/locales/en.json
  • autobot-slm-frontend/src/locales/es.json
  • autobot-slm-frontend/src/locales/fa.json
  • autobot-slm-frontend/src/locales/fr.json
  • autobot-slm-frontend/src/locales/he.json
  • autobot-slm-frontend/src/locales/lv.json
  • autobot-slm-frontend/src/locales/pl.json
  • autobot-slm-frontend/src/locales/pt.json
  • autobot-slm-frontend/src/locales/ur.json
  • autobot-slm-frontend/src/router/monitoringRoutes.ts
  • autobot-slm-frontend/src/views/MonitoringView.test.ts
  • autobot-slm-frontend/src/views/MonitoringView.vue
  • autobot-slm-frontend/src/views/monitoring/InstallMetrics.test.ts
  • autobot-slm-frontend/src/views/monitoring/InstallMetrics.vue
  • docs/api/health.md
  • libs/autobot-ui/src/types/prometheus-metrics.ts
  • repo_tests/frontend_api_contract_ratchet_test.py
  • repo_tests/slm_frontend_i18n_parity_test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20610 (head dac752d): changes needed.

Read only; nothing was run. Routes and shapes match, the SLM route is admin-gated, and nothing still imports the moved reader.

  • Medium, InstallMetrics.vue: PollingPausedAlert renders only under v-else-if="reading", after the unavailable branch, and the poller stops only when all reads fail. If the main app is down for about 75 s and returns, the screen stays on "not available" with no paused notice. Render it outside the state chain.
  • Medium, pollerCircuitBreaker.test.ts: the circuit-breaker case was deleted, not moved; nothing covers the 5-error pause or Retry. Add it to InstallMetrics.test.ts.
  • Closes wire(gui): useInstallMetrics (formerly usePrometheusMetrics) is finished but no user-app screen has ever used it #19484: the decision isn't on the issue, and the listed hand-rolled /monitoring/* fetchers in autobot-frontend aren't touched or explained. Use Refs, or supply both.
    Also: /monitoring/services/health has no admin dependency, unlike the other five; whether the SLM admin token is accepted by the main backend is still unverified. Low: ticks can overlap under a slow app, shared with other pollers.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20610 (head 5a68b39): approve.

Read only; not rendered. The paused notice shows with Retry on the unavailable screen, and recovery is tested. The internal key is added server-side only after the admin check passes in nginx, never sent to the browser. If autobot_internal_api_key is unset, five of six reads fail and the screen shows partial failure. Whether the backend accepts the key alongside the forwarded SLM token is unverified, so check it on a host.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Auto-sync: merging main into issue-19484-slm-install-metrics conflicts

The sync aborted the merge and pushed nothing. Conflicts are information, so it never resolves one itself. Below, for each conflicted file, are the commits that touched it on each side since the merge base 09b17c2bfe. Merge main in yourself and push; the label clears on the first run that finds this branch 0 behind.

repo_tests/slm_frontend_i18n_parity_test.py

side commit subject issue refs
main 3daec19c5 ci(guards): retire 75 floor= pins in 73 guard files, computed from the base instead (#19676) #19676
this branch 5a68b39d0 fix(frontend): re-pin the reach floors this branch moved (#19484) #19484

@github-actions github-actions Bot added the sync-conflict Set by the branch sync (#19548) label Nov 4, 2026
@mrveiss
mrveiss merged commit f7a7f95 into main Nov 4, 2026
2 of 4 checks passed
mrveiss added a commit that referenced this pull request Nov 4, 2026
@mrveiss
mrveiss deleted the issue-19484-slm-install-metrics branch November 4, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M3.6 SLM platform screens sync-conflict Set by the branch sync (#19548)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant