Skip to content

docs: Update monitoring procedures for automated Prometheus resource management#3106

Open
tolusha wants to merge 2 commits into
mainfrom
docs-che-operator-2117-automated-prometheus
Open

docs: Update monitoring procedures for automated Prometheus resource management#3106
tolusha wants to merge 2 commits into
mainfrom
docs-che-operator-2117-automated-prometheus

Conversation

@tolusha
Copy link
Copy Markdown
Contributor

@tolusha tolusha commented May 15, 2026

What does this pull request change?

Updated the {prod-short} Server and {devworkspace} Operator monitoring procedures to reflect that the che-operator now automatically creates and manages all required Prometheus resources (ServiceMonitor, Role, RoleBinding) and namespace labeling.

Changes:

  • Removed manual steps for creating ServiceMonitor objects
  • Removed manual steps for creating Role and RoleBinding resources
  • Removed manual namespace labeling step
  • Updated procedure text to explain that the operator automatically reconciles these resources

Related PR: eclipse-che/che-operator#2117

The che-operator PR #2117 introduces a new metrics package that automatically manages Prometheus resources for monitoring Eclipse Che Server and the DevWorkspace Operator, eliminating the need for manual configuration previously described in the documentation.

What issues does this pull request fix or reference?

eclipse-che/che-operator#2117

Specify the version of the product this pull request applies to

next

Pull Request checklist

The author and the reviewers validate the content of this pull request with the following checklist, in addition to the automated tests.

  • Any procedure:
    • Successfully tested.
  • Any page or link rename:
    • The page contains a redirection for the previous URL.
    • Propagate the URL change in:
  • Builds on Eclipse Che hosted by Red Hat.
  • the Validate language on files added or modified step reports no vale warnings.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026

Click here to review and test in web IDE: Contribute

@github-actions
Copy link
Copy Markdown

⚡️ Deploying pull request preview...

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha tolusha force-pushed the docs-che-operator-2117-automated-prometheus branch from ea903f0 to d65847a Compare May 19, 2026 09:39
@tolusha tolusha marked this pull request as ready for review May 19, 2026 09:41
@tolusha tolusha requested a review from nickboldt May 19, 2026 09:41
@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented May 19, 2026

@gtrivedi88
Please review

Copy link
Copy Markdown
Contributor

@gtrivedi88 gtrivedi88 left a comment

Choose a reason for hiding this comment

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

This is awesome. The content looks very clean and optimized. Added a couple of suggestions. Please review and let me know if you have questions. Thank you!

----
$ oc label namespace {prod-namespace} openshift.io/cluster-monitoring=true
----
The {prod-operator} automatically creates the required Prometheus resources (ServiceMonitor, Role, and RoleBinding) and configures {orch-namespace} labeling for monitoring {prod-short} Server JVM metrics.
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.

CQA P6/P7 — Content type mismatch. This file has a proc_ prefix but after this PR it contains zero procedure steps — no .Prerequisites, no .Procedure section. It's now a concept description with a verification section.

Options:

  • (a) Recommended: Rename to con_ prefix, add :page-aliases: for the old URL.
  • (b) Restructure as a thin procedure with a single verification-focused step.
  • (c) Fold into the parent monitoring assembly if standalone modules aren't warranted.

Also: the title "Collecting...metrics with Prometheus" implies active user action. Consider "Verifying {prod-short} Server metrics collection with Prometheus" or "Monitoring {prod-short} Server metrics with Prometheus" to match the JTBD (the user's job is now verifying, not collecting).

$ oc label namespace {prod-namespace} openshift.io/cluster-monitoring=true
----
The {prod-operator} automatically creates the required Prometheus resources (ServiceMonitor, Role, and RoleBinding) and configures {orch-namespace} labeling for monitoring {prod-short} Server JVM metrics.
No manual configuration is required. The operator reconciles these resources automatically.
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.

CQA P10 — Missing [role="_abstract"]. The second file has [role="_abstract"] but this one does not. Add it, and rewrite as a JTBD WHY-first abstract. For example:

[role="_abstract"]
The {prod-operator} automatically creates and reconciles the required Prometheus resources (ServiceMonitor, Role, and RoleBinding) and configures namespace labeling. No manual configuration is required to monitor {prod-short} Server JVM metrics.

Also consider extracting the shared body text into a snippet (snip_) — both files now have near-identical wording.

----
$ oc label namespace {prod-namespace} openshift.io/cluster-monitoring=true
----
The {prod-operator} automatically creates the required Prometheus resources (ServiceMonitor, Role, and RoleBinding) and configures {orch-namespace} labeling for monitoring the {devworkspace} Operator.
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.

CQA P6 — Orphaned snippet. This file previously included:

include::example$snip_{project-context}-create-a-role-and-rolebinding-for-prometheus-to-view-metrics.adoc[]

That include is now removed, which is correct. But the snippet file itself (snip_che-create-a-role-and-rolebinding-for-prometheus-to-view-metrics.adoc) still exists in the repo. If no other file references it, delete it in this PR to avoid dead content.

Also same structural issues as the other file: proc_ prefix but no procedure steps — consider converting to con_ concept module with :page-aliases: redirect.

$ oc label namespace {prod-namespace} openshift.io/cluster-monitoring=true
----
The {prod-operator} automatically creates the required Prometheus resources (ServiceMonitor, Role, and RoleBinding) and configures {orch-namespace} labeling for monitoring the {devworkspace} Operator.
No manual configuration is required. The operator reconciles these resources automatically.
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.

CQA Q13 — Pre-existing: [source,yaml] on shell commands. The Verification section in both files uses [source,yaml] for oc commands. Since you're touching these files, please fix to [source,terminal,subs="+quotes"] for the two shell command blocks in each file.

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented May 20, 2026

@gtrivedi88
done

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.

2 participants