Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-2296

Incorrect metric in Prometheusrule of amq-online operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Undefined Undefined
    • None
    • openshift-4.9
    • Prometheus
    • None
    • False
    • None
    • False
    • NEW
    • NEW

      Operator :  amq online 1.7.3

      Not working Expr:
      I can see the below expr in promehtous rule `enmasse` yaml:
      $ oc get prometheusrule enmasse -o yaml
      ~~~

      expr: enmasse_artemis_address_memory_usage / on (brokerprefix) group_left enmasse_address_space_broker_global_max_size*100

      ~~~

      Error:
      ~~~
      Danger alert:An error occurred
      found duplicate series for the match group {} on the right hand-side of the operation: [\{__name__="enmasse_address_space_broker_global_max_size", address_space_infra_uuid="standardevelopment", address_space_name="standard-ar-development", broker_prefix="broker-standardevelopment", container="address-space-controller", endpoint="health", exported_namespace="ar-development", instance="172.xx.xx.10:8080", job="address-space-controller", namespace="amq-online-infra", pod="address-space-controller-6xxxd-xxx", prometheus="openshift-user-workload-monitoring/user-workload", service="address-space-controller"}, \{__name__="enmasse_address_space_broker_global_max_size", address_space_infra_uuid="standaracceptance", address_space_name="standard-ar-acceptance", broker_prefix="broker-standaracceptance", container="address-space-controller", endpoint="health", exported_namespace="ar-acceptance", instance="172.xx.xx.10:8080", job="address-space-controller", namespace="amq-online-infra", pod="address-space-controller-6xxxd-xxx", prometheus="openshift-user-workload-monitoring/user-workload", service="address-space-controller"}];many-to-many matching not allowed: matching labels must be unique on one side

      ~~~

      Working Expr:
      enmasse_artemis_address_memory_usage / on (broker_prefix) group_left enmasse_address_space_broker_global_max_size * 100

       

      Workaround: changed from brokerprefix -> broker_prefix , expr worked.

              Unassigned Unassigned
              rhn-support-naygupta Nayantara Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: