new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
private void replaceConfiguration() throws Exception {
    HtmlPage page = submitConfigureForm(exporterUrl, "replace", RESOURCE_DIR + "/exporter/rest_jvm.yaml");
    assertNotNull(page, "Failed to replace configuration");
    assertTrue(page.asText().contains("JVMRuntime"),
            "Page does not contain expected JVMRuntime configuration");
    assertFalse(page.asText().contains("WebAppComponentRuntime"),
            "Page contains unexpected WebAppComponentRuntime configuration");
    Thread.sleep(20 * 1000);
    // "heap_free_current{name="managed-server1"}[15s]" search for results for last 15secs
    String prometheusSearchKey1 =
            "heap_free_current%7Bname%3D%22managed-server1%22%7D%5B15s%5D";
    checkMetricsViaPrometheus(prometheusSearchKey1, "managed-server1");
  }
/**
   * Replace monitoring exporter configuration and verify it was applied to both managed servers.
   *
   * @throws Exception if test fails
   */
Replace monitoring exporter configuration and verify it was applied to both managed servers.
@throws Exception if test fails
Replace monitoring exporter configuration and verify it was applied to both managed servers . @throws Exception if test fails
private void replaceConfiguration() throws Exception {
    HtmlPage page = submitConfigureForm(exporterUrl, "replace", RESOURCE_DIR + "/exporter/rest_jvm.yaml");
    assertNotNull(page, "Failed to replace configuration");
    assertTrue(page.asText().contains("JVMRuntime"),
            "Page does not contain expected JVMRuntime configuration");
    assertFalse(page.asText().contains("WebAppComponentRuntime"),
            "Page contains unexpected WebAppComponentRuntime configuration");
    Thread.sleep(20 * 1000);
    String prometheusSearchKey1 =
            "heap_free_current%7Bname%3D%22managed-server1%22%7D%5B15s%5D";
    checkMetricsViaPrometheus(prometheusSearchKey1, "managed-server1");
  }
private void replaceConfiguration ( ) throws Exception { HtmlPage page = submitConfigureForm ( exporterUrl , "replace" , RESOURCE_DIR + "/exporter/rest_jvm.yaml" ) ; assertNotNull ( page , "Failed to replace configuration" ) ; assertTrue ( page . asText ( ) . contains ( "JVMRuntime" ) , "Page does not contain expected JVMRuntime configuration" ) ; assertFalse ( page . asText ( ) . contains ( "WebAppComponentRuntime" ) , "Page contains unexpected WebAppComponentRuntime configuration" ) ; Thread . sleep ( 20 * 1000 ) ; String prometheusSearchKey1 = "heap_free_current%7Bname%3D%22managed-server1%22%7D%5B15s%5D" ; checkMetricsViaPrometheus ( prometheusSearchKey1 , "managed-server1" ) ; }
Replace monitoring exporter configuration and verify it was applied to both managed servers.
Replace monitoring exporter configuration and verify it was applied to both managed servers .
// "heap_free_current{name="managed-server1"}[15s]" search for results for last 15secs