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

Add steps to verify that the example COO service is working

XMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • OBSDOCS (Jun 17 - Jul 8) #256

      Description of problem:

      Provide commands to verify the example given    

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

          

      How reproducible:

       Always  

      Steps to Reproduce:

      Deploy the example documented here [1]
      
      [1] - https://docs.openshift.com/container-platform/4.15/observability/cluster_observability_operator/configuring-the-cluster-observability-operator-to-monitor-a-service.html#deploying-a-sample-service-for-cluster-observability-operator_configuring_the_cluster_observability_operator_to_monitor_a_service 

      Actual results:

      we have a nice example setup     

      Expected results:

       show the example is configuring a target, return metrics from the service  

      Additional info:

      The following commands could be added: 
      
      show the serviceMonitor has created a target: 
      
      $ oc -n ns1-coo exec -c prometheus prometheus-example-coo-monitoring-stack-0 -- curl -s 'http://localhost:9090/api/v1/targets' | jq '.data.activeTargets[].discoveredLabels | select(.__meta_kubernetes_endpoints_label_app=="prometheus-coo-example-app")'
      
      return metrics from the service 
      
      $ oc -n ns1-coo exec -c prometheus prometheus-example-coo-monitoring-stack-0 -- curl -s 'http://localhost:9090/api/v1/query?query=http_requests_total' | jq    

       

              rhn-support-gmcgoldr Gabriel McGoldrick
              rhn-support-nigsmith Nigel Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: