Uploaded image for project: 'Observability UI'
  1. Observability UI
  2. OU-401

DB with correct label failed to display on developer console

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • dashboards-plugin
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • Sprint 253, Sprint 254, Sprint 255, Sprint 256, Sprint 257, Sprint 258, Sprint 259

      Install COO by running bundle

      Create UIPlugin

       

      oc apply -f - <<EOF
      heredoc> apiVersion: observability.openshift.io/v1alpha1
      kind: UIPlugin
      metadata:
        name: ui-db
      spec:
        type: Dashboards
      heredoc> EOF 

       

      Create datasource

      oc apply -f - <<EOF
      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: cluster-prometheus-proxy
        namespace: openshift-config-managed
        labels:
          console.openshift.io/dashboard-datasource: 'true'
      data:
        'dashboard-datasource.yaml': |-
          kind: "Datasource"
          metadata:
            name: "cluster-prometheus-proxy"
            project: "openshift-config-managed"
          spec:
            plugin:
              kind: "prometheus"
              spec:
                direct_url = "https://thanos-querier.openshift-monitoring.svc.cluster.local.9091"
      EOF 

      Create admin dashboard, which can display on admin console

       

      oc create configmap test-db-plugin-admin --from-file=prometheus.json -n openshift-config-managed 
      oc -n openshift-config-managed label cm test-db-plugin-admin console.openshift.io/dashboard=true
      

       

      Create developer dashboard, which failed to display on developer console

       

      oc create configmap test-db-plugin-dev --from-file=k8s-resources-pod.json -n openshift-config-managed
      oc -n openshift-config-managed label cm test-db-plugin-dev console.openshift.io/odc-dashboard=true
      

       

      Dashboard config json files are attached

       

              Unassigned Unassigned
              hongyli@redhat.com Hongyan Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: