Skip to content

document the opt-in pprof endpoint [RHIDP-15224] - #4264

Closed
NiallTwomey2 wants to merge 1 commit into
mainfrom
RHIDP-15224-pprof-docs
Closed

NiallTwomey2 wants to merge 1 commit into
mainfrom
RHIDP-15224-pprof-docs

Conversation

@NiallTwomey2

Copy link
Copy Markdown
Member

Adds the operator profiling steps to the admin guide and links that guide from the README.

@NiallTwomey2
NiallTwomey2 requested a review from a team as a code owner December 2, 2026 17:42
@NiallTwomey2

Copy link
Copy Markdown
Member Author

The admin guide update is on #4249

@NiallTwomey2
NiallTwomey2 deleted the RHIDP-15224-pprof-docs branch December 2, 2026 17:46
@openshift-ci
openshift-ci Bot requested review from rm3l and subhashkhileri December 2, 2026 18:28
@rhdh-qodo-merge

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

No findings to report


⚠️ Qodo did not complete this review — the change was judged trivial and was not reviewed — so this is not a clean bill of health, and approval was withheld.

Qodo Logo

@rhdh-qodo-merge

rhdh-qodo-merge Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

document the opt-in pprof endpoint [RHIDP-15224]

📝 Documentation 🕐 Less than 10 minutes

Grey Divider

AI Description

• Adds an admin guide section for enabling the opt-in operator pprof endpoint.
• Documents PPROF_BIND_ADDRESS setup via Subscription, bound to loopback only.
• Links the admin guide from the README; stray git commands must be removed before merge.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit fff04d1
Diagram

graph TD
  A["Subscription spec.config.env"] --> B["PPROF_BIND_ADDRESS"] --> C["Operator pod startup"] --> D["pprof 127.0.0.1:6060"]
Loading
High-Level Assessment

Documenting an opt-in env var on the Subscription is the right approach, since it matches how other operator settings are documented. Defaulting to loopback binding with guidance against exposing it via Service or Route is also sound. The one required change is to remove the trailing git add/commit/push/gh pr create block from docs/admin.md, because it is a contributor workflow and does not belong in the admin guide. Also confirm that the 2.2.0 version claim and the log message strings match the code.

Files changed (2) +32 / -0

Documentation (2) +32 / -0
README.mdLink the new Administrator Guide from the docs list +1/-0

Link the new Administrator Guide from the docs list

• Adds an entry for docs/admin.md to the documentation list in the README, placed after the Operator Design link.

README.md

admin.mdAdd 'Profiling the operator' section with opt-in pprof steps +31/-0

Add 'Profiling the operator' section with opt-in pprof steps

• Documents enabling pprof with PPROF_BIND_ADDRESS=127.0.0.1:6060 for OLM deployments by editing the Subscription. Explains that the value is read at pod start, that the endpoint is off by default, and how to verify via log messages. Warns against exposing port 6060 through a Service or Route. The section also ends with a bash block of git and gh commands that is not operator documentation and should be removed.

docs/admin.md

@rhdh-qodo-merge

Copy link
Copy Markdown

Important

The /generate_labels command by Qodo was deprecated on the 1st of October 2026 and is no longer available. We recommend switching to the latest Qodo review capabilities. Learn more

@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant