Skip to content

HYPERFLEET-1256 - docs: add consolidated observability reference - #187

Merged
openshift-merge-bot[bot] merged 11 commits into
openshift-hyperfleet:mainfrom
ldornele:HYPERFLEET-1256
Jul 22, 2026
Merged

HYPERFLEET-1256 - docs: add consolidated observability reference#187
openshift-merge-bot[bot] merged 11 commits into
openshift-hyperfleet:mainfrom
ldornele:HYPERFLEET-1256

Conversation

@ldornele

@ldornele ldornele commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Creates consolidated observability reference documentation for all HyperFleet components, providing a single source of truth for metrics endpoints, health checks, and monitoring setup.

JIRA: HYPERFLEET-1256


What Changed

New File

  • hyperfleet/docs/observability.md — Consolidated observability reference covering:
    • Metrics endpoints (:9090/metrics) for API, Sentinel, Adapter Framework
    • Health endpoints (:8080/healthz, :8080/readyz) per Health Endpoints Standard
    • Cross-references to component repositories for detailed metric definitions
    • Links to HyperFleet Standards (Metrics, Health Endpoints, Logging, Tracing)

Updated Files

  • README.md — Added "See also" reference to Observability Reference below the Observability standards table

@openshift-ci
openshift-ci Bot requested review from pnguyen44 and sherine-k July 14, 2026 18:10
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Added hyperfleet/docs/observability.md with page metadata, navigation, Prometheus metrics conventions, standard health endpoints, component-specific documentation links, port-separation guidance, and references to HyperFleet observability standards.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: sherine-k

🚥 Pre-merge checks | ✅ 11
✅ Passed checks (11 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately captures the main change: adding a consolidated observability reference document.
Description check ✅ Passed The description is on-topic and describes the observability documentation change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Sec-02: Secrets In Log Output ✅ Passed PASS: HEAD only modifies README.md and hyperfleet/docs/observability.md; no slog/logr/zap/fmt.Print* calls or token/password/secret fields appear, so no CWE-532 exposure.
No Hardcoded Secrets ✅ Passed No hardcoded secrets, credential URLs, or long base64 literals found in README.md or hyperfleet/docs/observability.md; no CWE-798 hit.
No Weak Cryptography ✅ Passed Docs-only change; touched files have no crypto code, ECB, SHA1-for-security, or secret comparisons. No CWE-327/CWE-328 issue.
No Injection Vectors ✅ Passed PASS: changed files are Markdown only; no CWE-89/78/79/502 sinks or user-controlled inputs appear.
No Privileged Containers ✅ Passed No changed Kubernetes/OpenShift manifests, Helm templates, or Dockerfiles; only docs and markdownlint config changed, with no privileged flags in deployable assets.
No Pii Or Sensitive Data In Logs ✅ Passed PR changes only markdown docs/README links; no slog/logr/zap/fmt.Print* statements or sensitive data in logs.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@hyperfleet/docs/observability.md`:
- Around line 60-64: Update the Sentinel “Metrics Documentation” link in the
observability documentation to reference docs/metrics.md instead of the stale
docs/sentinel-operator-guide.md path, while leaving the repository and
Architecture Doc links unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: bbd0ec44-d093-4d68-bfa6-64cb57fe9d85

📥 Commits

Reviewing files that changed from the base of the PR and between 020c408 and 9af67f7.

📒 Files selected for processing (2)
  • README.md
  • hyperfleet/docs/observability.md
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • openshift-hyperfleet/architecture (manual)
  • openshift-hyperfleet/hyperfleet-api (manual)
  • openshift-hyperfleet/hyperfleet-sentinel (manual)
  • openshift-hyperfleet/hyperfleet-adapter (manual)
  • openshift-hyperfleet/hyperfleet-broker (manual)

Comment thread hyperfleet/docs/observability.md Outdated
Comment thread hyperfleet/docs/observability.md Outdated
- [Health Endpoints Standard](../standards/health-endpoints.md) — Health check conventions
- [Logging Specification](../standards/logging-specification.md) — Structured logging format
- [Tracing Standard](../standards/tracing.md) — Distributed tracing conventions

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.

Since we are consolidating this -- should we also include information about how to set up prometheus for each component?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Prometheus setup instructions are deployment-specific and vary by environment (GKE Managed Prometheus, self-hosted Prometheus Operator, cloud-native alternatives). This reference focuses on the architectural contract (ports, endpoints, naming) that remains constant across deployments. This cloud-agnostic contract ensures HyperFleet components work with any Prometheus-compatible system, leaving the deployment choice to operators based on their specific environment.

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.

That makes sense, okay.

@tirthct

tirthct commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@ldornele are we missing the broker reference in the doc? The ticket mentions broker alongside sentinel/adapters.

Comment thread README.md Outdated
| | [Helm Chart Conventions](hyperfleet/standards/helm-chart-conventions.md) | Chart structure, values schema, and naming conventions |
| **Process** | [Ticket Hygiene](hyperfleet/standards/ticket-hygiene.md) | JIRA ticket field requirements and sprint readiness |

**See also**: [Observability Reference](hyperfleet/docs/observability.md) — consolidated metrics reference for HyperFleet's deployable components

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.

Move this section down below to
### 4. Implementation Guides (`docs/`)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed — Implementation Guides section doesn't list specific docs (unlike the Standards table). The observability reference is discoverable via hyperfleet/docs/ navigation.

Does that make sense? TY

Comment thread hyperfleet/docs/observability.md Outdated

---

## Component Metrics Endpoints

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.

Suggested change
## Component Metrics Endpoints
## Component Metrics/Health Endpoints
Metrics are exposed on **port 9090** at the `/metrics` endpoint.
Health statuses exposed on **port 8080 ** at the `/readyz` and `/healthz` andpoint.

Maybe something like this? Or don't include the health endpoints at all?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated section title and description to cover both metrics and health endpoints

Comment thread hyperfleet/docs/observability.md Outdated
Comment thread hyperfleet/docs/observability.md Outdated
@pnguyen44

Copy link
Copy Markdown
Contributor

Now that this consolidated reference exists, consider adding a link to it from the Metrics Standard (and maybe Health Endpoints) under the component-specific metrics sections. That would make this the discoverable entry point from the standards, not only from the README.

Comment thread hyperfleet/docs/observability.md Outdated
Comment thread hyperfleet/docs/observability.md Outdated
Comment thread hyperfleet/docs/observability.md Outdated

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@hyperfleet/docs/observability.md`:
- Around line 36-45: Update the universal endpoint statement in the
observability documentation to qualify it as applying only to the listed
deployable components. Add an explicit note that hyperfleet-broker does not
expose standalone metrics or health endpoints because these are surfaced through
the Adapter, while preserving the existing endpoint table.
- Line 47: Update the observability documentation note to describe port 9090 and
port 8080 as separate listener ports, not network isolation. If isolation is
intended, document the concrete NetworkPolicy, firewall, or ACL mechanism that
enforces it; otherwise remove the isolation claim.
- Around line 43-47: Resolve the API health-port inconsistency between the
observability contract and the runbook: update the API health check in
docs/runbook.md to use the contract’s authoritative health port, while keeping
REST requests on port 8000. Ensure the API entry in observability.md and the
runbook agree before publishing the contract.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 5743e6fc-2b84-4347-a3e1-3e8e8020b998

📥 Commits

Reviewing files that changed from the base of the PR and between 3b55b69 and 9bde38f.

📒 Files selected for processing (1)
  • hyperfleet/docs/observability.md
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • openshift-hyperfleet/architecture (manual)
  • openshift-hyperfleet/hyperfleet-api (manual)
  • openshift-hyperfleet/hyperfleet-sentinel (manual)
  • openshift-hyperfleet/hyperfleet-adapter (manual)
  • openshift-hyperfleet/hyperfleet-broker (manual)

Comment thread hyperfleet/docs/observability.md Outdated
Comment thread hyperfleet/docs/observability.md Outdated
Comment thread hyperfleet/docs/observability.md Outdated
Comment thread hyperfleet/docs/observability.md Outdated
Comment on lines +47 to +51
**Notes:**

- Components expose separate listener ports: `:9090` for metrics, `:8080` for health checks
- The API service also exposes REST endpoints on port `:8000`
- **Broker**: `hyperfleet-broker` is an embedded library ([broker.md](../components/broker/broker.md)), not a standalone service — it does not expose its own endpoints. Broker metrics and health checks are surfaced through the embedding component (Adapter)

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.

Broker metrics are also surfaced through Sentinel, not only Adapter. Sentinel embeds hyperfleet-broker and exposes hyperfleet_broker_* on its own /metrics endpoint. Worth wording this as embedding components (Sentinel and Adapter).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — both Sentinel and Adapter embed the broker.

@pnguyen44 pnguyen44 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.

/lgtm

@openshift-ci

openshift-ci Bot commented Jul 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pnguyen44

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit 326641c into openshift-hyperfleet:main Jul 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants