new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMonitoringExporter.java
private void replaceMetricsDomainQualifierTrueConfiguration() throws Exception {
    HtmlPage page =
            submitConfigureForm(exporterUrl, "replace", RESOURCE_DIR + "/exporter/rest_domainqualtrue.yaml");
    assertNotNull(page);
    logger.info("page - " + page.asText());
    assertTrue(page.asText().contains("domainQualifier"));

    String searchKey = "wls_servlet_executionTimeAverage%7Bapp%3D%22myear%22%7D%5B15s%5D";
    checkMetricsViaPrometheus(searchKey, "\"domain\":\"wls-" + domain1Uid + "\"");
  }
/**
   * Test to replace monitoring exporter configuration with configuration file with
   * domainQualifier=true.
   *
   * @throws Exception if failed to apply configuration or check the expected values.
   */
Test to replace monitoring exporter configuration with configuration file with
domainQualifier=true.

@throws Exception if failed to apply configuration or check the expected values.
Test to replace monitoring exporter configuration with configuration file with domainQualifier = true . @throws Exception if failed to apply configuration or check the expected values .
private void replaceMetricsDomainQualifierTrueConfiguration() throws Exception {
    HtmlPage page =
            submitConfigureForm(exporterUrl, "replace", RESOURCE_DIR + "/exporter/rest_domainqualtrue.yaml");
    assertNotNull(page);
    logger.info("page - " + page.asText());
    assertTrue(page.asText().contains("domainQualifier"));
    String searchKey = "wls_servlet_executionTimeAverage%7Bapp%3D%22myear%22%7D%5B15s%5D";
    checkMetricsViaPrometheus(searchKey, "\"domain\":\"wls-" + domain1Uid + "\"");
  }
private void replaceMetricsDomainQualifierTrueConfiguration ( ) throws Exception { HtmlPage page = submitConfigureForm ( exporterUrl , "replace" , RESOURCE_DIR + "/exporter/rest_domainqualtrue.yaml" ) ; assertNotNull ( page ) ; logger . info ( "page - " + page . asText ( ) ) ; assertTrue ( page . asText ( ) . contains ( "domainQualifier" ) ) ; String searchKey = "wls_servlet_executionTimeAverage%7Bapp%3D%22myear%22%7D%5B15s%5D" ; checkMetricsViaPrometheus ( searchKey , "\"domain\":\"wls-" + domain1Uid + "\"" ) ; }
Test to replace monitoring exporter configuration with configuration file with
 domainQualifier=true.
Test to replace monitoring exporter configuration with configuration file with domainQualifier = true .