Repository navigation
Summarize rule health and gap status in the Rule Monitoring Overview panel - #8348
Conversation
…rview panel Document the Rule Monitoring Overview panel, which replaced the Rules with gaps metric in 9.4. Rescope the existing 9.3+ tab to 9.3 and add a 9.4+/Serverless tab covering the Last response summary and Rule gap summary charts. Also fix three references to the retired Rules with gaps and Total rules with gaps labels that the new panel made false. AI-Assisted: Cursor / Claude Opus 4.5 Co-authored-by: Cursor <[email protected]>
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
🔍 Preview links for changed docs |
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Every `/docs-review` run on this repo is currently failing, and no review is being posted. Five PRs hit it in the last few minutes (#8355, #8353, #8351, #8349, #8348). The failure is in the `activation` job, at the step `Validate ANTHROPIC_API_KEY secret`. `activation` fails, `agent` is skipped, and the run reports a green-ish mixed state while doing nothing. ## Cause The docs review workflow moved from the Copilot engine to the Claude engine via OpenRouter. Copilot ran on `copilot-requests` credits and needed no secret, so this caller never had a `secrets:` block. The Claude engine reads `${{ secrets.OPENROUTER_API_KEY }}` inside its engine env, and a reusable workflow does not inherit caller secrets unless they are passed explicitly. So the secret resolved to empty, and validation failed before the agent started. ## Fix Pass the secret through: ```yaml secrets: OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} ``` `OPENROUTER_API_KEY` already exists as a repo secret here, and `v1` declares it under `on.workflow_call.secrets`, so explicit pass-through is valid. No secret needs creating. ## Verifying Re-trigger the docs review checkbox on any open PR. The `activation` job should succeed and `agent` should run instead of being skipped. Worth checking the same block in any other repo that calls `gh-aw-docs-review.lock.yml@v1` — the same caller change is needed wherever the workflow was previously running on Copilot. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
There was a problem hiding this comment.
Docs review summary
Criteria
- User focus: The new panel description tells readers what each chart measures and how to act on it (e.g., which Gap fill status filter surfaces the rules behind a number), which serves the reader's actual task of triaging rule health.
- Technical accuracy: Verified against the Kibana implementation at HEAD rather than the linked issue's snapshot.
rule_gap_summary_chart.tsxandgapsSummarySchema(v1.ts) both include anerrorbucket, confirming the draft'sFilled/In progress/Unfilled/Errorbreakdown.RulesWithGapsOverviewPanel'sisExpandedstate defaults totrue, confirming "It's expanded by default."defaultRangeValue = GapRangeValue.LAST_90_Dconfirms the "last 90 days" claim. Issue #7353 flagged the Error bucket and the expand default as open questions against an earlier code state — both have since been resolved in the draft's favor, so no changes needed there. - Applicability:
applies_tousage is correct — theapplies-itemobject-notation tags, the inline table-cell tag ahead of the routing-table row, and the section-level fenced block (no blank line before the heading) all match the syntax rules. Narrowing the old panel's tag fromstack: ga 9.3+tostack: ga =9.3is the right move now that 9.4 supersedes it. - Maintainability:
monitor-rule-executions.mdlinks to the single source infill-rule-gaps.mdinstead of duplicating the panel description — good single-source-of-truth practice. - Language: No internal jargon or unexplained acronyms in the new text.
- Style: One subject/verb-agreement nit (inline comment).
- Issue satisfaction: Satisfied — the draft's two claims that issue #7353 flagged as unconfirmed check out against the current Kibana code.
Nits
- See inline comment on
monitor-rule-executions.mdfor a subject/pronoun-agreement fix.
Notes
- Vale flagged two items outside this PR's diff — a "simply" word-choice suggestion at
fill-rule-gaps.md:15and amapped_pagesinformational note atmonitor-rule-executions.md:2— neither touches lines this PR changed, so they're left out of scope here. - Didn't independently verify the exact UI string "Auto gap fill status" against Kibana's translation strings; flagging as unverified rather than a defect.
Generated by Docs review agent for #8348 · claude · sonnet · 236.4 AIC · ⊞ 19K
| serverless: ga | ||
| ``` | ||
|
|
||
| The **Rule Monitoring Overview** panel above the Rules table summarizes how every rule in the space last ran and how much gap time they've accumulated. Refer to [Rule Monitoring tab](/solutions/security/detect-and-alert/fill-rule-gaps.md#rule-monitoring-tab-gaps). |
There was a problem hiding this comment.
"every rule in the space last ran and how much gap time they've accumulated" mixes a singular subject ("every rule") with a plural pronoun ("they"). Rephrase as "...and how much gap time it has accumulated," or make the subject plural: "how the rules in the space last ran and how much gap time they've accumulated."
Lead the panel description with what the reader checks, drop the collapse instruction and the donut layout walkthrough, and put serverless first in applies_to. Point the routing-table row straight at the panel description, rename the pointer section for the task, and replace the last stale reference to the retired overview. AI-Assisted: Cursor (Claude Opus 5.5) Co-authored-by: Cursor <[email protected]>
…puted Address review feedback that the routing-table row described the gap chart as a rule count. The Rule gap summary chart measures gap duration. Also reframe the 9.4+ panel description around what readers do with each number: drop the expanded-by-default note and the status-name mapping, say what Error time needs, and explain why the gap total can exceed the outage that caused it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…monitoring-overview
Give each chart its own short paragraph, move the three facts about the gap total into a list, and end with how to find the rules behind a number by using the Last response or Gap fill status filters. Drop details the UI already shows: the center total of the Last response summary chart, the list of gap status names, and the Auto gap fill status note, which the Enable automatic gap fill tip already covers. AI-Assisted: Cursor (Claude Opus 5.5) Co-authored-by: Cursor <[email protected]>
Summary
Fixes #7353.
In 9.4 and serverless, the Rule Monitoring Overview panel replaced the Rules with gaps metric on the Rule Monitoring tab. This PR documents the new panel and updates text that still described the old one.
Changes
ga 9.3+toga =9.3. Content for 9.3 and earlier is unchanged.Still needed
A screenshot of the panel. The one on the issue is from a pre-GA build: it shows a Rules column that was removed and has no
Errorrow. The new image needs its own filename, because the dashboard page already usessecurity-rule-monitoring-overview.png.Generative AI disclosure