apiVersion: observability.openshift.io/v1alpha1
kind: UIPlugin
metadata:
name: logging
spec:
type: Logging
logging:
lokiStack:
name: logging-loki
logsLimit: 50
timeout: 30s
schema: otel (1)
Starting with OKD 4.19, the perspectives in the web console have unified. The Developer perspective is no longer enabled by default. All users can interact with all OKD web console features. However, if you are not the cluster owner, you might need to request permission to access certain features from the cluster owner. You can still enable the Developer perspective. On the Getting Started pane in the web console, you can take a tour of the console, find information on setting up your cluster, view a quick start for enabling the Developer perspective, and follow links to explore new features and capabilities. |
The logging UI plugin surfaces logging data in the OKD web console on the Observe → Logs page. You can specify filters, queries, time ranges and refresh rates, with the results displayed as a list of collapsed logs, which can then be expanded to show more detailed information for each log.
If you also deploy the Troubleshooting UI plugin on OKD version 4.16+, it connects to the Korrel8r service and adds direct links to the web console, from the Observe → Logs page, to the Observe → Metrics page with a correlated PromQL query. The plugin also adds a See Related Logs link from the web console alerting detail page, at Observe → Alerting, to the Observe → Logs page with a correlated filter set selected.
The features of the plugin are categorized as:
Adds the logging view to the web console.
Merges the web console alerts with log-based alerts defined in the Loki ruler. Adds a log-based metrics chart in the alert detail view.
Merges the web console alerts with log-based alerts defined in the Loki ruler. Adds a log-based metrics chart in the alert detail view for the web console.
For Cluster Observability Operator (COO) versions, the support for these features in OKD versions is shown in the following table:
COO version | OCP versions | Features |
---|---|---|
0.3.0+ |
4.12 |
|
0.3.0+ |
4.13 |
|
0.3.0+ |
4.14+ |
|
You have access to the cluster as a user with the cluster-admin
role.
You have logged in to the OKD web console.
You have installed the Cluster Observability Operator.
You have a LokiStack
instance in your cluster.
In the OKD web console, click Operators → Installed Operators and select Cluster Observability Operator.
Choose the UI Plugin tab (at the far right of the tab list) and click Create UIPlugin.
Select YAML view, enter the following content, and then click Create:
apiVersion: observability.openshift.io/v1alpha1
kind: UIPlugin
metadata:
name: logging
spec:
type: Logging
logging:
lokiStack:
name: logging-loki
logsLimit: 50
timeout: 30s
schema: otel (1)
1 | schema is one of otel , viaq , or select . The default is viaq if no value is specified. When you choose select , you can select the mode in the UI when you run a query. |
These are the known issues for the logging UI plugin - for more information, see OU-587.
|