Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-1251

Selector and namespaceSelector Loki ruler description have the same description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Logging
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      DESCRIPTION

      When describing how to configure the Lokistack Ruler [0], in the example:

       apiVersion: loki.grafana.com/v1
      kind: LokiStack
      metadata:
        name: <name>
        namespace: <namespace>
      spec:
      # ...
        rules:
          enabled: true [1]
          selector:
            matchLabels:
              openshift.io/<label_name>: "true" [2] 
          namespaceSelector:
            matchLabels:
              openshift.io/<label_name>: "true" [3]
      
      
      [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.
      [3] Add a custom label that can be added to namespaces where you want to enable the use of logging alerts and metrics.

       

      The points 2 and 3 are described as the same being this information not correct. As per Upstream documentation [1]:

      • selector: A selector to select which LokiRules to mount for loading alerting/recording rules from.
      • namespaceSelector: Namespaces to be selected for PrometheusRules discovery. If unspecified, only the same namespace as the LokiStack object is in is used.

       

       [0][ https://docs.openshift.com/container-platform/4.16/observability/logging/logging_alerts/custom-logging-alerts.html#configuring-logging-loki-ruler_custom-logging-alerts|https://docs.openshift.com/container-platform/4.16/observability/logging/logging_alerts/custom-logging-alerts.html#configuring-logging-loki-ruler_custom-logging-alerts]

       [1] https://loki-operator.dev/docs/api.md/#loki-grafana-com-v1-RulesSpec

              rhn-support-ssiddhar Shreya Siddhartha
              rhn-support-ocasalsa Oscar Casal Sanchez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: