Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-3862

Loki AlertingRules not showing up on the web console

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • None
    • Log Console, Log Storage
    • None
    • False
    • None
    • False
    • NEW
    • NEW
    • Low

    Description

      Description of problem:

      AlertingRules created on the cluster are not showing up on the OCP web console.
      
      I have this AlertingRule:  apiVersion: loki.grafana.com/v1
      kind: AlertingRule
      metadata:
        name: reversewords-alerts
        namespace: reversewords
        labels:
          openshift.io/cluster-monitoring: "true"
      spec:
        tenantID: "application"
        groups:
          - name: reversewords-app-rules-group
            interval: 20s
            rules:
              - alert: ReverseWordsListentingOnPort8080
                expr: |
                  sum(count_over_time({kubernetes_namespace_name="reversewords", kubernetes_pod_name=~"reverse-words-.*"} |= "Listening on port 8080" [2h])) > 0
                for: 10s
                labels:
                  severity: info
                  tenantId: application
                annotations:
                  summary: Reverse Words App is listenting on port 8080
                  description: Reverse Words App is listenting on port 8080
      
      And this RulerConfig:
      
      apiVersion: loki.grafana.com/v1
      kind: RulerConfig
      metadata:
        name: rulerconfig
        namespace: openshift-logging
      spec:
        evaluationInterval: 1m
        pollInterval: 1m
        alertmanager:
          discovery:
            enableSRV: true
            refreshInterval: 1m
          enableV2: true
          endpoints:
            - "https://_web._tcp.alertmanager-operated.openshift-monitoring.svc"
          enabled: true
          refreshPeriod: 10s 
      
      
      In the OCP Web Console, under Observe -> Alerting -> Alerting Rules I cannot find the AlertingRule I just created. 

      Version-Release number of selected component (if applicable):

      cluster-logging.v5.7.0
      
      loki-operator.v5.7.0

      How reproducible:

      Always
      
      I can share the environment where this is reproduced.

      Steps to Reproduce:

      1. Create an AlertingRule
      2. Check AlertingRule in the web ui under Observe -> Alerting -> Alerting Rules 

      Actual results:

      Alert not showing up

      Expected results:

      Alert showing up

      Additional info:

      I can share the environment

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mavazque@redhat.com Mario Vazquez Cebrian
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: