OBSDOCS-1801: Loki - Adjust Queries for both OTEL and ViaQ#94828
OBSDOCS-1801: Loki - Adjust Queries for both OTEL and ViaQ#94828gabriel-rh merged 1 commit intoopenshift:standalone-logging-docs-mainfrom
Conversation
|
@theashiot: This pull request references OBSDOCS-1801 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
62aad81 to
d86fbca
Compare
|
@theashiot: This pull request references OBSDOCS-1801 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
xperimental
left a comment
There was a problem hiding this comment.
Had a first look at it. I'll give it a more thorough read tomorrow.
| | Tenant type | Valid namespaces for `AlertingRule` CRs | ||
| | application | | ||
| | audit | `openshift-logging` | ||
| | infrastructure | `openshift-/\*`, `kube-/\*`, `default` |
There was a problem hiding this comment.
This does not seem to parse well. The \ and / are not meant to be in the output. To me it looks as if we can just use openshift-* and kube-*.
|
Thanks, @xperimental for the review! I've fixed the issues with rendering. best, |
xperimental
left a comment
There was a problem hiding this comment.
Sorry for taking a while for the second review...
| | application | | ||
| | audit | `openshift-logging` | ||
| | infrastructure | `openshift-/\*`, `kube-/\*`, `default` | ||
| | infrastructure | `openshift-\*`, `kube-*`, `default` |
There was a problem hiding this comment.
| | infrastructure | `openshift-\*`, `kube-*`, `default` | |
| | infrastructure | `openshift-*`, `kube-*`, `default` |
There was a problem hiding this comment.
The "\" is an escape sequence character. This renders as:
openshift-*, kube-*, default
There was a problem hiding this comment.
Ok, I'm not sure what it is escaping then, because if it's the * we should need one for the second occurrence as well. I'm also not sure if the current preview is up-to-date with the state of the PR.
| <1> The namespace where this `AlertingRule` CR is created must have a label matching the LokiStack `spec.rules.namespaceSelector` definition. | ||
| <2> The `labels` block must match the LokiStack `spec.rules.selector` definition. | ||
| <3> `AlertingRule` CRs for `infrastructure` tenants are only supported in the `openshift-\*`, `kube-\*`, or `default` namespaces. | ||
| <3> `AlertingRule` CRs for `infrastructure` tenants are only supported in the `openshift-\*`, `kube-*`, or `default` namespaces. |
There was a problem hiding this comment.
| <3> `AlertingRule` CRs for `infrastructure` tenants are only supported in the `openshift-\*`, `kube-*`, or `default` namespaces. | |
| <3> `AlertingRule` CRs for `infrastructure` tenants are only supported in the `openshift-*`, `kube-*`, or `default` namespaces. |
|
Thanks, @xperimental for the review! |
|
Hi @anpingli, @kabirbhartiRH, @QiaolingTang, can you please provide a QE review for the changes? thanks, |
|
Hi @anpingli, @kabirbhartiRH, @QiaolingTang, can you please provide a QE review for the changes? thanks, |
| ---- | ||
| <1> Enable Loki alerting and recording rules in your cluster. | ||
| <2> Add a custom label that can be added to namespaces where you want to enable the use of logging alerts and metrics. | ||
| <2> Specify the selector for the alerting and recording resources if you have deployed many `LokiStack` CRs in a cluster. |
There was a problem hiding this comment.
We should remove 'if you have deployed many LokiStack CRs in a cluster'. this label is required too when only one lokiStack is deployed.
| namespaceSelector: #<4> | ||
| matchLabels: | ||
| openshift.io/<label_name>: "true" <3> | ||
| openshift.io/<label_name>: "true" #<5> |
There was a problem hiding this comment.
I think we can use same example: <label_name>: "true".
| = Logging collector alerts | ||
|
|
||
| In logging 5.8 and later versions, the following alerts are generated by the {clo}. You can view these alerts in the {ocp-product-title} web console. | ||
| The following alerts are generated by the {clo}. You can view these alerts in the {ocp-product-title} web console. |
There was a problem hiding this comment.
CollectorHighErrorRate and CollectorVeryHighErrorRate is for 5.x only.
There was a problem hiding this comment.
This file is not included so the content won't appear in the docs.
| |Collectors are consuming too much node disk on the host. | ||
| |Warning | ||
|
|
||
| |`CollectorHigh403ForbiddenResponseRate` |
There was a problem hiding this comment.
ok, i revised the the target for this PR to 6.3. I'll create a separate PR for 6.2 and older versions.
|
@theashiot: This pull request references OBSDOCS-1801 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
d4df9d9 to
e8dd65b
Compare
theashiot
left a comment
There was a problem hiding this comment.
Thanks, @mburke5678 for the wonderful review! i've made the suggested changes.
best,
ashwin
| |Collectors are consuming too much node disk on the host. | ||
| |Warning | ||
|
|
||
| |`CollectorHigh403ForbiddenResponseRate` |
There was a problem hiding this comment.
ok, i revised the the target for this PR to 6.3. I'll create a separate PR for 6.2 and older versions.
| = Logging collector alerts | ||
|
|
||
| In logging 5.8 and later versions, the following alerts are generated by the {clo}. You can view these alerts in the {ocp-product-title} web console. | ||
| The following alerts are generated by the {clo}. You can view these alerts in the {ocp-product-title} web console. |
There was a problem hiding this comment.
This file is not included so the content won't appear in the docs.
| = Configuring the ruler | ||
|
|
||
| When the LokiStack ruler component is enabled, users can define a group of link:https://grafana.com/docs/loki/latest/query/[LogQL] expressions that trigger logging alerts or recorded metrics. | ||
| When the `LokiStack` ruler component is enabled, users can define a group of link:https://grafana.com/docs/loki/latest/query/[LogQL] expressions that trigger logging alerts or recorded metrics. |
|
|
||
| |`LokiReadPathHighLoad` | ||
| |`The read path is experiencing high load.` | ||
| |The read path has high volume of queries causing longer response times. |
There was a problem hiding this comment.
yep, reads much better
|
|
||
| |`LokistackSchemaUpgradesRequired` | ||
| |`The LokiStack "{{ $labels.stack_name }}" in namespace "<namespace>" is using a storage schema | ||
| configuration that does not contain the latest schema version. It is recommended to update the schema configuration to update the schema version to the latest` |
There was a problem hiding this comment.
Good catch, @mburke5678! This is the output text. I believe this should first be fixed upstream first, cc @xperimental
|
/lgtm |
|
Thanks, @anpingli! |
|
@theashiot: This pull request references OBSDOCS-1801 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
New changes are detected. LGTM label has been removed. |
Thanks for catching this! I added the required procedure module labels and intro. |
|
/merge-review-needed |
|
/label merge-review-needed |
gabriel-rh
left a comment
There was a problem hiding this comment.
/LGTM - need to fix 2 minor issues
| <2> Add a custom label that can be added to namespaces where you want to enable the use of logging alerts and metrics. | ||
| <2> Specify the selector for the alerting and recording resources. | ||
| <3> Add a custom label that can be added to namespaces where you want to enable the use of logging alerts and metrics. | ||
| <4> Specify the namespaces in which the alerting and recording rules are defined for the {loki-op}. If undefined, only the rules defined in the same namespace as the `LokiStack` CR is are used. |
There was a problem hiding this comment.
CR is are used
I would drop the "is" - but only a suggestion for later
| The Alerting UI is accessible through the *{perspective}* perspective of the {ocp-product-title} web console. | ||
|
|
||
| // tag::ADM[] | ||
| You can access the *Alerting* user interface (UI) is through the *{perspective}* perspective of the {ocp-product-title} web console. |
There was a problem hiding this comment.
"is through" - I think the "is" here needs to be removed
| * From the *Developer* perspective, go to *Observe* and go to the *Alerts* tab. | ||
| * Select the project that you want to manage alerts for from the *Project:* list. | ||
|
|
||
| You can access the *Alerting* user interface (UI) is through the *{perspective}* perspective of the {ocp-product-title} web console. |
There was a problem hiding this comment.
and again - remove "is"
|
Thanks, @gabriel-rh for the review! I've made the required changes. best, ashwin |
|
@theashiot: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
c6a53ad
into
openshift:standalone-logging-docs-main
|
/cherrypick standalone-logging-docs-6.3 |
|
@gabriel-rh: new pull request created: #96166 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |

Version(s): 6.3
Issue: https://issues.redhat.com/browse/OBSDOCS-1801
Link to docs preview:
https://94828--ocpdocs-pr.netlify.app/openshift-logging/latest/configuring/configuring-the-log-store.html
https://94828--ocpdocs-pr.netlify.app/openshift-logging/latest/logging_alerts/custom-logging-alerts.html
https://94828--ocpdocs-pr.netlify.app/openshift-logging/latest/logging_alerts/default-logging-alerts.html
QE review:
Additional information: