Repository navigation
✨ Add dashboard panel and alert for docs_i18n_locale_fallback_total - #7287
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellar-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @hivecommons-hive[bot]. Thanks for your PR. I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
🔴 kubeconform is failing because Fix (same pattern already used for - kubeconform -strict -summary \
- -kubernetes-version 1.30.0 \
- -skip ServiceMonitor \
- cluster-objects/*.yaml
+ kubeconform -strict -summary \
+ -kubernetes-version 1.30.0 \
+ -skip ServiceMonitor,PrometheusRule \
+ cluster-objects/*.yamlI could not push this myself: my GitHub App token is blocked from writing A maintainer/agent with 🐝 Hive Agent: — hive: agent=telemetry backend=copilot model=claude-sonnet-4-6 copilot=1.0.88 |
The docs_i18n_locale_fallback_total counter (src/lib/metrics.ts, added in that PR merged, but was never wired into any dashboard or alert — unlike every docs_api_* metric, it was invisible to on-call. - Add a Locale message-bundle fallbacks panel to cluster-objects/dashboard.json (the dashboard validated by scripts/lint-dashboard.mjs / dashboard-lint.yml CI). - Add a DocsI18nLocaleFallbackSustained alert to cluster-objects/alerts.yaml (also lint-validated), firing when a locale's fallback rate is sustained for 15 minutes. - Add runbooks/i18n-locale-fallback.md with diagnosis/recovery steps, linked from the new alert and indexed in runbooks/README.md. No exporter, backend, or external data flow is added; both files are pull-only artifacts that only take effect if an operator's own Prometheus Operator/Grafana is already watching this namespace. No observability backend is confirmed for this repo. Fixes #7286 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: telemetry <telemetry@hive.kubestellar.io>
e7066a2 to
4b8d7f8
Compare
|
hive/awaiting-ci: rebased onto main (resolved runbooks/README.md table conflict, kept both rows); CI pending — sweep will merge when green. 🐝 Hive Agent: — hive: agent=scanner backend=copilot model=claude-fable-5 copilot=1.0.88 |
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
Fixes #7286
What
docs_i18n_locale_fallback_total(src/lib/metrics.ts, added in#7262) has been collecting locale message-bundle fallback events since
that PR merged, but was never visible in any dashboard or alert — unlike
every
docs_api_*metric.cluster-objects/dashboard.json(the dashboard validated byscripts/lint-dashboard.mjs/dashboard-lint.ymlCI).DocsI18nLocaleFallbackSustainedalert tocluster-objects/alerts.yaml(also lint-validated), firing when alocale's fallback rate is sustained for 15 minutes.
runbooks/i18n-locale-fallback.mdwith diagnosis/recovery steps,linked from the new alert's
runbook_urland indexed inrunbooks/README.md.Scope note
cluster-objects/dashboard-docs-api.json,grafana-dashboard.json,prometheusrule.yaml, andprometheusrule-docs-api.yamlare knowndrifted duplicates of
dashboard.json/alerts.yaml, already tracked forconsolidation in #6884, #6891, #6928. This PR intentionally does not
touch them, to avoid adding to that drift; the same
docs_i18n_locale_fallback_totalvisibility gap remains in those filesfor whoever resolves that consolidation.
Verification
node scripts/lint-dashboard.mjspasses (both files still well-formedand reference known metrics).
npx vitest run src/__tests__/metrics.test.ts src/__tests__/i18n-request.test.ts scripts/lint-dashboard-helpers.test.mjs— 37/37 passing.npx markdownlint-cli2on the new/edited runbook files — 0 issues.edited files are pull-only artifacts that only take effect if an
operator's own Prometheus Operator/Grafana is already watching this
namespace. No observability backend is confirmed for this repo.
— hive: agent=telemetry backend=copilot model=claude-sonnet-4-6 copilot=1.0.88