new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
private void checkPromGrafanaLatestVersion() throws Exception {
    //uninstall prometheus and grafana if running
    uninstallPrometheusGrafana();
    try {
      installPrometheusGrafana(null, null,
              domain2Namespace,
              domain2Uid);


      //verify access to Monitoring Exporter
      verifyMonExpAppAccessThroughNginx(ingressHost2List.get(0),managedServersCount);
      //verify metrics via prometheus
      String testappPrometheusSearchKey =
              "wls_servlet_invocation_total_count%7Bapp%3D%22test-webapp%22%7D%5B15s%5D";
      checkMetricsViaPrometheus(testappPrometheusSearchKey, "test-webapp");
    } finally {
      uninstallPrometheusGrafana();
    }
  }
/**
   * Test covers the following use cases.
   * Create Prometheus, Grafana from latest version of helm chart
   * verify access to monitoring exporter WebLogic metrics via nginx
   * check WebLogic metrics via Prometheus
   */
Test covers the following use cases.
Create Prometheus, Grafana from latest version of helm chart
verify access to monitoring exporter WebLogic metrics via nginx
check WebLogic metrics via Prometheus
Test covers the following use cases . Create Prometheus Grafana from latest version of helm chart verify access to monitoring exporter WebLogic metrics via nginx check WebLogic metrics via Prometheus
private void checkPromGrafanaLatestVersion() throws Exception {
    uninstallPrometheusGrafana();
    try {
      installPrometheusGrafana(null, null,
              domain2Namespace,
              domain2Uid);
      verifyMonExpAppAccessThroughNginx(ingressHost2List.get(0),managedServersCount);
      String testappPrometheusSearchKey =
              "wls_servlet_invocation_total_count%7Bapp%3D%22test-webapp%22%7D%5B15s%5D";
      checkMetricsViaPrometheus(testappPrometheusSearchKey, "test-webapp");
    } finally {
      uninstallPrometheusGrafana();
    }
  }
private void checkPromGrafanaLatestVersion ( ) throws Exception { uninstallPrometheusGrafana ( ) ; try { installPrometheusGrafana ( null , null , domain2Namespace , domain2Uid ) ; verifyMonExpAppAccessThroughNginx ( ingressHost2List . get ( 0 ) , managedServersCount ) ; String testappPrometheusSearchKey = "wls_servlet_invocation_total_count%7Bapp%3D%22test-webapp%22%7D%5B15s%5D" ; checkMetricsViaPrometheus ( testappPrometheusSearchKey , "test-webapp" ) ; } finally { uninstallPrometheusGrafana ( ) ; } }
Test covers the following use cases.
Test covers the following use cases .
//uninstall prometheus and grafana if running //verify access to Monitoring Exporter //verify metrics via prometheus