-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OBSDOCS-1749: Add section about uiplugin in installing logging #92388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,56 @@ | ||||
| // Module included in the following assemblies: | ||||
| // | ||||
| // * observability/logging/logging-6.2/6x-cluster-logging-deploying-6.2.adoc | ||||
|
|
||||
| :_newdoc-version: 2.18.4 | ||||
| :_template-generated: 2025-04-18 | ||||
| :_mod-docs-content-type: PROCEDURE | ||||
|
|
||||
| [id="installing-the-logging-ui-plugin-cli_{context}"] | ||||
| = Installing the Logging UI plugin by using the CLI | ||||
|
|
||||
| Install the Logging UI plugin by using the command-line interface (CLI) so that you can visualize logs. | ||||
|
|
||||
| .Prerequisites | ||||
| * You have administrator permissions. | ||||
| * You installed the {oc-first}. | ||||
| * You installed and configured {loki-op}. | ||||
|
|
||||
| .Procedure | ||||
| . Install the {coo-full}. For more information, see link:https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/cluster_observability_operator/installing-cluster-observability-operators[Installing the Cluster Observability Operator]. | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be an xref? |
||||
|
|
||||
| . Create a `UIPlugin` custom resource (CR): | ||||
| + | ||||
| .Example `UIPlugin` CR | ||||
| [source,yaml] | ||||
| ---- | ||||
| apiVersion: observability.openshift.io/v1alpha1 | ||||
| kind: UIPlugin | ||||
| metadata: | ||||
| name: logging # <1> | ||||
| spec: | ||||
| type: Logging # <2> | ||||
| logging: | ||||
| lokiStack: | ||||
| name: logging-loki # <3> | ||||
| ---- | ||||
| <1> Set `name` to `logging`. | ||||
| <2> Set `type` to `Logging`. | ||||
| <3> The `name` value must match the name of your LokiStack instance. | ||||
| + | ||||
| [NOTE] | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't support deploy lokistack in the other namespace expect for openshift-logging . @JoaoBraveCoding Can you confirm if we can enable it now?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know there was a customer case that required us to add the namespace. But in regards to support I'm not I'll check with @xperimental during the daily today
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Discussed it with @xperimental and with 6.x there isn't anything blocking users from installing logging on a different namespace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No idea if there is limitation to deploy the logging in the other namespace. let me confirm this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. /lgtm |
||||
| ==== | ||||
| If you did not install LokiStack in the `openshift-logging` namespace, set the LokiStack namespace under the `lokiStack` configuration. | ||||
| ==== | ||||
|
|
||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||
| . Apply the `UIPlugin` CR object by running the following command: | ||||
| + | ||||
| [source,terminal] | ||||
| ---- | ||||
| $ oc apply -f <filename>.yaml | ||||
| ---- | ||||
|
|
||||
| .Verification | ||||
|
|
||||
| . Access the {product-title} web console, and refresh the page if a pop-up message instructs you to do so. | ||||
| . Navigate to the *Observe → Logs* panel, where you can run LogQL queries. You can also query logs for individual pods from the *Aggregated Logs* tab of a specific pod. | ||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * observability/logging/logging-6.2/6x-cluster-logging-deploying-6.2.adoc | ||
|
|
||
| :_newdoc-version: 2.18.4 | ||
| :_template-generated: 2025-04-18 | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="installing-the-logging-ui-plugin_gui{context}"] | ||
| = Installing the Logging UI plugin by using the web console | ||
|
|
||
| Install the Logging UI plugin by using the web console so that you can visualize logs. | ||
|
|
||
| .Prerequisites | ||
| * You have administrator permissions. | ||
| * You have access to the {product-title} web console. | ||
| * You installed and configured {loki-op}. | ||
|
|
||
| .Procedure | ||
| . Install the {coo-full}. For more information, see link:https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/cluster_observability_operator/installing-cluster-observability-operators[Installing the Cluster Observability Operator]. | ||
|
|
||
| . Navigate to the *Installed Operators* page. Under *Provided APIs*, select *ClusterObservabilityOperator*. Find the `UIPlugin` resource and click *Create Instance*. | ||
|
|
||
| . Select the YAML view, and then use the following template to create a `UIPlugin` custom resource (CR): | ||
| + | ||
| [source,yaml] | ||
| ---- | ||
| apiVersion: observability.openshift.io/v1alpha1 | ||
| kind: UIPlugin | ||
| metadata: | ||
| name: logging # <1> | ||
| spec: | ||
| type: Logging # <2> | ||
| logging: | ||
| lokiStack: | ||
| name: logging-loki # <3> | ||
| ---- | ||
| <1> Set `name` to `logging`. | ||
| <2> Set `type` to `Logging`. | ||
| <3> The `name` value must match the name of your LokiStack instance. | ||
| + | ||
| [NOTE] | ||
| ==== | ||
| If you did not install LokiStack in the `openshift-logging` namespace, set the LokiStack namespace under the `lokiStack` configuration. | ||
| ==== | ||
|
|
||
| . Click *Create*. | ||
|
|
||
| .Verification | ||
|
|
||
| . Refresh the page when a pop-up message instructs you to do so. | ||
| . Navigate to the *Observe → Logs* panel, where you can run LogQL queries. You can also query logs for individual pods from the *Aggregated Logs* tab of a specific pod. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure that this module file contains the required metadata, per the OCP doc guidelines: https://github.com/openshift/openshift-docs/blob/main/contributing_to_docs/doc_guidelines.adoc#module-file-metadata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done