Added documentation of the Routing Metrics & Observability features in fluent bit 4.2 to router docs. Fixes #2205.#2206
Added documentation of the Routing Metrics & Observability features in fluent bit 4.2 to router docs. Fixes #2205.#2206eschabell merged 2 commits intofluent:masterfrom eschabell:erics_routing_metrics_o11y
Conversation
…n fluent bit 4.2 to router docs. Fixes #2205. Signed-off-by: Eric D. Schabell <eric@schabell.org>
WalkthroughUpdated Changes
Sequence Diagram(s)sequenceDiagram
%% Styling for readability
participant Event as Event (log)
participant Router as Router
participant Eval as Condition Evaluator\n(using Context types)
participant Route as Route Decision
participant Metrics as Metrics Exporter\n(/metrics)
rect rgb(230, 247, 255)
Event->>Router: incoming event
Router->>Eval: evaluate conditions\n(context: body/metadata/group_*/otel_*)
Eval-->>Router: match / no-match
Router->>Route: forward to matched route(s)
end
rect rgb(255, 247, 230)
Router->>Metrics: increment routing metrics\n(e.g., routed_total, unmatched_total, dropped_total)
Metrics-->>/metrics: exposed via HTTP endpoint
end
note over Metrics: Metrics use Prometheus format with labels\n(service, pipeline, route, reason)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
pipeline/router.md (1)
250-250: Address the style guide violation flagged by Vale on the use of "below".Line 250 uses "See context types below," which triggers a style guide warning. Consider rephrasing to avoid directional language, such as "See the Context types section" or "See Context types for details."
-| `context` | Optional. Specifies where to look for the field. See context types below. Defaults to `body`. | +| `context` | Optional. Specifies where to look for the field. See the Context types section. Defaults to `body`. |
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
pipeline/router.md(2 hunks)
🧰 Additional context used
🪛 GitHub Check: runner / vale
pipeline/router.md
[warning] 250-250:
[vale] reported by reviewdog 🐶
[FluentBit.Directional] Verify your use of 'below' with the Style Guide.
Raw Output:
{"message": "[FluentBit.Directional] Verify your use of 'below' with the Style Guide.", "location": {"path": "pipeline/router.md", "range": {"start": {"line": 250, "column": 82}}}, "severity": "INFO"}
🔇 Additional comments (1)
pipeline/router.md (1)
252-264: Context types section is well-documented and addresses PR objectives.The new "Context types" section clearly documents the seven supported context options with concise descriptions. This directly addresses the PR objective to document context-based routing for dynamic routing decisions. The table format is consistent with existing documentation patterns.
Signed-off-by: Eric D. Schabell <eric@schabell.org>
|
AI review passed, merging. |
Added documentation of the Routing Metrics & Observability features in fluent bit 4.2 to router docs. Fixes #2205.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.