Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-9450

User Workload monitoring thanos-querier rewrites "cluster" field with name of openshift-cluster instead of Application's cluster-field name

XMLWordPrintable

    • -
    • Low
    • Unspecified
    • If docs needed, set a value

      Description of problem:

      The "thanos-querier" somehow rewrites the "cluster"-field with the name of the Openshift-cluster, as opposed to when doing the exact same query but on the "prometheus" API endpoint

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

      4.9

      How reproducible:

      Customer is able to reproduce at will.

      Steps to Reproduce:

      Thanos-querier API endpoint :
      $ curl --noproxy "*" -sLk --data-urlencode "query=opensearch_cluster_nodes_number" -H "Authorization: Bearer xxxx" "https://thanos-querier-openshift-monitoring.apps.smals-75.paas.acc.cloud.smals.be/api/v1/query" | jq-win64.exe
      ...
      {
      "status": "success",
      "data": {
      "resultType": "vector",
      "result": [
      {
      "metric": {
      "_name_": "opensearch_cluster_nodes_number",
      "cluster": "smals-75",
      "container": "opensearch",
      "endpoint": "http",
      ...

      Prometheus API endpoint :
      $ curl --noproxy "*" -sLk --data-urlencode "query=opensearch_cluster_nodes_number" -H "Authorization: Bearer xxxx" "https://prometheus-k8s-openshift-monitoring.apps.smals-75.paas.acc.cloud.smals.be/api/v1/query" | jq-win64.exe
      ...
      {
      "status": "success",
      "data": {
      "resultType": "vector",
      "result": [
      {
      "metric": {
      "_name_": "opensearch_cluster_nodes_number",
      "cluster": "opensearch-test",
      "container": "opensearch",
      "endpoint": "http",

      Actual results:

      Expected results:

      Additional info:

            janantha@redhat.com Jayapriya Pai
            rhn-support-nigsmith Nigel Smith
            Junqi Zhao Junqi Zhao
            Red Hat Employee
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: